Documentation ¶
Index ¶
- func AddAnnotations(objMeta *metav1.ObjectMeta, annotations map[string]string)
- func AddFinalizers(objMeta *metav1.ObjectMeta, finalizers []string)
- func GetPatchData(oldObj, newObj interface{}) ([]byte, []byte, error)
- func RemoveAnnotations(objMeta *metav1.ObjectMeta, annotations map[string]string)
- func RemoveFinalizers(objMeta *metav1.ObjectMeta, finalizers []string)
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.