mirror of
https://github.com/projectcapsule/capsule.git
synced 2026-05-06 17:36:49 +00:00
* chore: add nwa Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * chore: update helm-schema version Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * chore: update helm-schema version Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> --------- Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>
33 lines
1018 B
Go
33 lines
1018 B
Go
// Copyright 2020-2025 Project Capsule Authors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package api
|
|
|
|
import (
|
|
k8stypes "k8s.io/apimachinery/pkg/types"
|
|
)
|
|
|
|
// Name must be unique within a namespace. Is required when creating resources, although
|
|
// some resources may allow a client to request the generation of an appropriate name
|
|
// automatically. Name is primarily intended for creation idempotence and configuration
|
|
// definition.
|
|
// Cannot be updated.
|
|
// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names
|
|
// +kubebuilder:validation:Pattern=`^[a-z0-9]([-a-z0-9]*[a-z0-9])?$`
|
|
// +kubebuilder:validation:MaxLength=253
|
|
// +kubebuilder:object:generate=true
|
|
type Name string
|
|
|
|
func (n Name) String() string {
|
|
return string(n)
|
|
}
|
|
|
|
type StatusNameUID struct {
|
|
// Name
|
|
Name Name `json:"name,omitempty"`
|
|
// Namespace
|
|
Namespace Name `json:"namespace,omitempty"`
|
|
// UID of the tracked Tenant to pin point tracking
|
|
k8stypes.UID `json:"uid,omitempty" protobuf:"bytes,5,opt,name=uid"`
|
|
}
|