Documentation
¶
Index ¶
- func AddAnnotations(o metav1.Object, annotations map[string]string)
- func AddControllerReference(o metav1.Object, r metav1.OwnerReference) error
- func AddFinalizer(o metav1.Object, finalizer string)
- func AddLabels(o metav1.Object, labels map[string]string)
- func AddOwnerReference(o metav1.Object, r metav1.OwnerReference)
- func AsController(r *nddv1.TypedReference) metav1.OwnerReference
- func AsOwner(r *nddv1.TypedReference) metav1.OwnerReference
- func FinalizerExists(o metav1.Object, finalizer string) bool
- func HaveSameController(a, b metav1.Object) bool
- func NamespacedNameOf(r *corev1.ObjectReference) types.NamespacedName
- func RemoveAnnotations(o metav1.Object, annotations ...string)
- func RemoveFinalizer(o metav1.Object, finalizer string)
- func RemoveLabels(o metav1.Object, labels ...string)
- func TypedReferenceTo(o metav1.Object, of schema.GroupVersionKind) *nddv1.TypedReference
- func WasCreated(o metav1.Object) bool
- func WasDeleted(o metav1.Object) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAnnotations ¶ added in v0.3.26
AddAnnotations to the supplied object.
func AddControllerReference ¶ added in v0.3.25
func AddControllerReference(o metav1.Object, r metav1.OwnerReference) error
AddControllerReference to the supplied object's metadata. Any existing owner with the same UID as the supplied reference will be replaced. Returns an error if the supplied object is already controlled by a different owner.
func AddFinalizer ¶
AddFinalizer to the supplied Kubernetes object's metadata.
func AddOwnerReference ¶ added in v0.3.25
func AddOwnerReference(o metav1.Object, r metav1.OwnerReference)
AddOwnerReference to the supplied object' metadata. Any existing owner with the same UID as the supplied reference will be replaced.
func AsController ¶ added in v0.3.25
func AsController(r *nddv1.TypedReference) metav1.OwnerReference
AsController converts the supplied object reference to a controller reference. You may also consider using metav1.NewControllerRef.
func AsOwner ¶ added in v0.3.25
func AsOwner(r *nddv1.TypedReference) metav1.OwnerReference
AsOwner converts the supplied object reference to an owner reference.
func FinalizerExists ¶
FinalizerExists checks whether given finalizer is already set.
func HaveSameController ¶ added in v0.3.26
HaveSameController returns true if both supplied objects are controlled by the same object.
func NamespacedNameOf ¶ added in v0.3.26
func NamespacedNameOf(r *corev1.ObjectReference) types.NamespacedName
NamespacedNameOf returns the referenced object's namespaced name.
func RemoveAnnotations ¶ added in v0.3.26
RemoveAnnotations with the supplied keys from the supplied object.
func RemoveFinalizer ¶
RemoveFinalizer from the supplied Kubernetes object's metadata.
func RemoveLabels ¶ added in v0.3.26
RemoveLabels with the supplied keys from the supplied object.
func TypedReferenceTo ¶ added in v0.3.25
func TypedReferenceTo(o metav1.Object, of schema.GroupVersionKind) *nddv1.TypedReference
TypedReferenceTo returns a typed object reference to the supplied object, presumed to be of the supplied group, version, and kind.
func WasCreated ¶ added in v0.3.26
WasCreated returns true if the supplied object was created in the API server.
func WasDeleted ¶ added in v0.3.26
WasDeleted returns true if the supplied object was deleted from the API server.
Types ¶
This section is empty.