Documentation
¶
Index ¶
- Constants
- func ControllerFieldOwner() string
- func ControllerFieldOwnerPrefix(fieldowner string) string
- func FreezeLabelRemove(obj client.Object)
- func FreezeLabelTriggers(obj client.Object) bool
- func HasLooseOwnerReference(obj client.Object, owner client.Object) bool
- func NewAssignedCondition(obj client.Object) metav1.Condition
- func NewBoundCondition(obj client.Object) metav1.Condition
- func OwnerPromotionLabelRemove(obj client.Object)
- func OwnerPromotionLabelTriggers(obj client.Object) bool
- func ReleaseAnnotationRemove(obj client.Object)
- func ReleaseAnnotationTriggers(obj client.Object) bool
- func RemoveLooseOwnerReference(obj client.Object, owner client.Object)
- func SetLooseOwnerReference(obj client.Object, owner client.Object, schema *runtime.Scheme) (err error)
- type Condition
- type ConditionList
- func (in ConditionList) DeepCopy() ConditionList
- func (in ConditionList) DeepCopyInto(out *ConditionList)
- func (c *ConditionList) GetConditionByType(conditionType string) *Condition
- func (c *ConditionList) RemoveConditionByType(condition Condition)
- func (c *ConditionList) UpdateConditionByType(condition Condition)
Constants ¶
const ( ReleaseAnnotation = "projectcapsule.dev/release" ReleaseAnnotationTrigger = "true" AvailableIngressClassesAnnotation = "capsule.clastix.io/ingress-classes" AvailableIngressClassesRegexpAnnotation = "capsule.clastix.io/ingress-classes-regexp" AvailableStorageClassesAnnotation = "capsule.clastix.io/storage-classes" AvailableStorageClassesRegexpAnnotation = "capsule.clastix.io/storage-classes-regexp" AllowedRegistriesAnnotation = "capsule.clastix.io/allowed-registries" AllowedRegistriesRegexpAnnotation = "capsule.clastix.io/allowed-registries-regexp" ForbiddenNamespaceLabelsAnnotation = "capsule.clastix.io/forbidden-namespace-labels" ForbiddenNamespaceLabelsRegexpAnnotation = "capsule.clastix.io/forbidden-namespace-labels-regexp" ForbiddenNamespaceAnnotationsAnnotation = "capsule.clastix.io/forbidden-namespace-annotations" ForbiddenNamespaceAnnotationsRegexpAnnotation = "capsule.clastix.io/forbidden-namespace-annotations-regexp" ProtectedTenantAnnotation = "capsule.clastix.io/protected" )
const ( // ReadyCondition indicates the resource is ready and fully reconciled. ReadyCondition string = "Ready" CordonedCondition string = "Cordoned" NotReadyCondition string = "NotReady" AssignedCondition string = "Assigned" BoundCondition string = "Bound" // FailedReason indicates a condition or event observed a failure (Claim Rejected). SucceededReason string = "Succeeded" FailedReason string = "Failed" ActiveReason string = "Active" CordonedReason string = "Cordoned" PoolExhaustedReason string = "PoolExhausted" QueueExhaustedReason string = "QueueExhausted" NamespaceExhaustedReason string = "NamespaceExhausted" )
const ( TenantNameLabel = "kubernetes.io/metadata.name" TenantLabel = "capsule.clastix.io/tenant" ResourcePoolLabel = "projectcapsule.dev/pool" FreezeLabel = "projectcapsule.dev/freeze" FreezeLabelTrigger = "true" OwnerPromotionLabel = "owner.projectcapsule.dev/promote" OwnerPromotionLabelTrigger = "true" CordonedLabel = "projectcapsule.dev/cordoned" CordonedLabelTrigger = "true" ManagedByCapsuleLabel = "capsule.clastix.io/managed-by" LimitRangeLabel = "capsule.clastix.io/limit-range" NetworkPolicyLabel = "capsule.clastix.io/network-policy" ResourceQuotaLabel = "capsule.clastix.io/resource-quota" RolebindingLabel = "capsule.clastix.io/role-binding" )
const (
CapsuleFieldOwnerPrefix = "capsule"
)
const (
ControllerFinalizer = "controller.projectcapsule.dev/finalize"
)
Variables ¶
This section is empty.
Functions ¶
func ControllerFieldOwner ¶
func ControllerFieldOwner() string
func FreezeLabelRemove ¶
func FreezeLabelTriggers ¶
func HasLooseOwnerReference ¶
If not returns false.
func ReleaseAnnotationRemove ¶
func RemoveLooseOwnerReference ¶
Removes a Loose Ownerreference based on UID.
Types ¶
type Condition ¶
+kubebuilder:object:generate=true
func NewCordonedCondition ¶
func NewReadyCondition ¶
func (*Condition) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.
func (*Condition) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Condition) UpdateCondition ¶
Disregards fields like LastTransitionTime and Version, which are not relevant for the API.
type ConditionList ¶
type ConditionList []Condition
func (ConditionList) DeepCopy ¶
func (in ConditionList) DeepCopy() ConditionList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConditionList.
func (ConditionList) DeepCopyInto ¶
func (in ConditionList) DeepCopyInto(out *ConditionList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ConditionList) GetConditionByType ¶
func (c *ConditionList) GetConditionByType(conditionType string) *Condition
Adds a condition by type.
func (*ConditionList) RemoveConditionByType ¶
func (c *ConditionList) RemoveConditionByType(condition Condition)
Removes a condition by type.
func (*ConditionList) UpdateConditionByType ¶
func (c *ConditionList) UpdateConditionByType(condition Condition)
Adds a condition by type.