Documentation
¶
Index ¶
- Constants
- 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" )
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 ( 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" )
const (
ControllerFinalizer = "controller.projectcapsule.dev/finalize"
)
Variables ¶
This section is empty.
Functions ¶
func FreezeLabelRemove ¶
func FreezeLabelTriggers ¶
func HasLooseOwnerReference ¶
If not returns false.
func OwnerPromotionLabelRemove ¶ added in v0.11.0
func OwnerPromotionLabelTriggers ¶ added in v0.11.0
func ReleaseAnnotationRemove ¶
func RemoveLooseOwnerReference ¶
Removes a Loose Ownerreference based on UID.
Types ¶
type Condition ¶ added in v0.11.0
+kubebuilder:object:generate=true
func NewCordonedCondition ¶ added in v0.11.0
func NewReadyCondition ¶ added in v0.11.0
func (*Condition) DeepCopy ¶ added in v0.11.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.
func (*Condition) DeepCopyInto ¶ added in v0.11.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Condition) UpdateCondition ¶ added in v0.11.0
Disregards fields like LastTransitionTime and Version, which are not relevant for the API.
type ConditionList ¶ added in v0.11.0
type ConditionList []Condition
func (ConditionList) DeepCopy ¶ added in v0.11.0
func (in ConditionList) DeepCopy() ConditionList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConditionList.
func (ConditionList) DeepCopyInto ¶ added in v0.11.0
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 ¶ added in v0.11.0
func (c *ConditionList) GetConditionByType(conditionType string) *Condition
Adds a condition by type.
func (*ConditionList) RemoveConditionByType ¶ added in v0.11.0
func (c *ConditionList) RemoveConditionByType(condition Condition)
Removes a condition by type.
func (*ConditionList) UpdateConditionByType ¶ added in v0.11.0
func (c *ConditionList) UpdateConditionByType(condition Condition)
Adds a condition by type.