meta

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 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"
	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"
	PoolExhaustedReason      string = "PoolExhausted"
	QueueExhaustedReason     string = "QueueExhausted"
	NamespaceExhaustedReason string = "NamespaceExhausted"
)
View Source
const (
	FreezeLabel        = "projectcapsule.dev/freeze"
	FreezeLabelTrigger = "true"
)
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 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

This section is empty.

Jump to

Keyboard shortcuts

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