meta

package
v0.11.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReleaseAnnotation        = "projectcapsule.dev/release"
	ReleaseAnnotationTrigger = "true"
)
View Source
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"
)
View Source
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"
)
View Source
const (
	ControllerFinalizer = "controller.projectcapsule.dev/finalize"
)

Variables

This section is empty.

Functions

func FreezeLabelRemove

func FreezeLabelRemove(obj client.Object)

func FreezeLabelTriggers

func FreezeLabelTriggers(obj client.Object) bool

func HasLooseOwnerReference

func HasLooseOwnerReference(
	obj client.Object,
	owner client.Object,
) bool

If not returns false.

func NewAssignedCondition

func NewAssignedCondition(obj client.Object) metav1.Condition

func NewBoundCondition

func NewBoundCondition(obj client.Object) metav1.Condition

func OwnerPromotionLabelRemove added in v0.11.0

func OwnerPromotionLabelRemove(obj client.Object)

func OwnerPromotionLabelTriggers added in v0.11.0

func OwnerPromotionLabelTriggers(obj client.Object) bool

func ReleaseAnnotationRemove

func ReleaseAnnotationRemove(obj client.Object)

func ReleaseAnnotationTriggers

func ReleaseAnnotationTriggers(obj client.Object) bool

func RemoveLooseOwnerReference

func RemoveLooseOwnerReference(
	obj client.Object,
	owner client.Object,
)

Removes a Loose Ownerreference based on UID.

func SetLooseOwnerReference

func SetLooseOwnerReference(
	obj client.Object,
	owner client.Object,
	schema *runtime.Scheme,
) (err error)

Adds an ownerreferences, which does not delete the object when the owner is deleted.

Types

type Condition added in v0.11.0

type Condition metav1.Condition

+kubebuilder:object:generate=true

func NewCordonedCondition added in v0.11.0

func NewCordonedCondition(obj client.Object) Condition

func NewReadyCondition added in v0.11.0

func NewReadyCondition(obj client.Object) Condition

func (*Condition) DeepCopy added in v0.11.0

func (in *Condition) DeepCopy() *Condition

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.

func (*Condition) DeepCopyInto added in v0.11.0

func (in *Condition) DeepCopyInto(out *Condition)

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

func (c *Condition) UpdateCondition(condition Condition) (updated bool)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL