updater

package
v0.0.0-...-cbe7ff8 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

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 AssertOwnerReferenceEqual

func AssertOwnerReferenceEqual(dst, src runtime.Object) error

func CopyAnnotation

func CopyAnnotation(dst, src metav1.Object, key string)

func CopyAnnotations

func CopyAnnotations(dst, src metav1.Object)

func CopyCNRM

func CopyCNRM(dst, src metav1.Object)

func CopyImmutable

func CopyImmutable(dst, src runtime.Object) error

func CopyMeta

func CopyMeta(dst, src runtime.Object) error

CopyMeta copies resource metadata from one resource to another. used when updating existing resources in the cluster.

func CreateIfNotExists

func CreateIfNotExists(ctx context.Context, cli client.Client, resource client.Object) func() error

func CreateOrRecreate

func CreateOrRecreate(ctx context.Context, cli client.Client, scheme *runtime.Scheme, resource client.Object) func() error

func CreateOrUpdate

func CreateOrUpdate(ctx context.Context, cli client.Client, scheme *runtime.Scheme, resource client.Object) func() error

func DeleteIfExists

func DeleteIfExists(ctx context.Context, cli client.Client, resource client.Object) func() error

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

func KeepOwnerReference(dst, src runtime.Object) error

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.

Jump to

Keyboard shortcuts

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