package
0.0.0-20240402130556-ef6dcbeca69d
Repository: https://github.com/konflux-ci/operator-toolkit.git
Documentation: pkg.go.dev

# Functions

AddAnnotations copies the map into the resource's Annotations map.
AddLabels copies the map into the resource's Labels map.
CopyAnnotationsByPrefix copies all annotations from a source object to a destination object where the key matches the specified sourcePrefix.
CopyAnnotationsWithPrefixReplacement copies all annotations from a source object to a destination object where the key matches the specified sourcePrefix.
CopyLabelsByPrefix copies all labels from a source object to a destination object where the key matches the specified sourcePrefix.
CopyLabelsWithPrefixReplacement copies all labels from a source object to a destination object where the key matches the specified sourcePrefix.
DeleteAnnotation deletes the annotation specified by name from the referenced object.
DeleteLabel deletes the label specified by name from the referenced object.
GetAnnotationsWithPrefix is a method that returns a map of key/value pairs matching a prefix string.
GetLabelsWithPrefix is a method that returns a map of key/value pairs matching a prefix string.
HasAnnotation checks whether a given annotation exists or not.
HasAnnotationWithValue checks if an annotation exists and has the given value.
HasLabel checks whether a given Label exists or not.
HasLabelWithValue checks if a label exists and has the given value.
SetAnnotation adds a new annotation to the referenced object or updates its value if it already exists.
SetLabel adds a new label to the referenced object or updates its value if it already exists.