Documentation ¶
Index ¶
- func AnnotateIfExists(ctx context.Context, cli client.Client, scheme *runtime.Scheme, ...) func() error
- func AssertOwnerReferenceEqual(dst, src runtime.Object) error
- func CopyAnnotation(dst, src metav1.Object, key string)
- func CopyAnnotations(dst, src metav1.Object)
- func CopyCNRM(dst, src metav1.Object)
- func CopyImmutable(dst, src runtime.Object) error
- func CopyMeta(dst, src runtime.Object) error
- func CreateIfNotExists(ctx context.Context, cli client.Client, resource client.Object) func() error
- func CreateOrRecreate(ctx context.Context, cli client.Client, scheme *runtime.Scheme, ...) func() error
- func CreateOrUpdate(ctx context.Context, cli client.Client, scheme *runtime.Scheme, ...) func() error
- func DeleteIfExists(ctx context.Context, cli client.Client, resource client.Object) func() error
- func FindAll(ctx context.Context, cli client.Client, types []client.ObjectList, ...) ([]runtime.Object, error)
- func KeepOwnerReference(dst, src runtime.Object) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnnotateIfExists ¶
func AnnotateIfExists(ctx context.Context, cli client.Client, scheme *runtime.Scheme, annotationSource client.Object) func() error
AnnotateIfExists copies annotations of the given resource into the existing resource. No other parts of the existing resource is touched.
func CopyAnnotation ¶
func CopyAnnotations ¶
func CopyImmutable ¶
func CopyMeta ¶
CopyMeta copies resource metadata from one resource to another. used when updating existing resources in the cluster.
func CreateIfNotExists ¶
func CreateOrRecreate ¶
func CreateOrUpdate ¶
func DeleteIfExists ¶
func FindAll ¶
func FindAll(ctx context.Context, cli client.Client, types []client.ObjectList, source resource.Source) ([]runtime.Object, error)
FindAll finds all Kubernetes resource matching label selector 'app=NAME' for all specified types
func KeepOwnerReference ¶
KeepOwnerReference ensures that if ownerReference is set on the source object, it is copied to the destination object.
Otherwise, it doesn't touch the destination object.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.