helper

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAnnotations

func AddAnnotations(objMeta *metav1.ObjectMeta, annotations map[string]string)

AddAnnotations add given annotations to given meta object Object annotations will be overridden if any of the given annotations exists with the same key

func AddFinalizers

func AddFinalizers(objMeta *metav1.ObjectMeta, finalizers []string)

AddFinalizers add the given finalizers to the given meta object Finalizer will be added only if it doesn't exist in object

func GetPatchData

func GetPatchData(oldObj, newObj interface{}) ([]byte, []byte, error)

GetPatchData will return the diff data for the given objects

func RemoveAnnotations

func RemoveAnnotations(objMeta *metav1.ObjectMeta, annotations map[string]string)

RemoveAnnotations remove the given annotations from given meta object

func RemoveFinalizers

func RemoveFinalizers(objMeta *metav1.ObjectMeta, finalizers []string)

RemoveFinalizers remove the given finalizers from the given meta object

Types

This section is empty.

Jump to

Keyboard shortcuts

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