Documentation ¶
Overview ¶
Package annotations implements annotation helper functions.
Index ¶
- func AddAnnotations(o metav1.Object, desired map[string]string) bool
- func Get(obj metav1.Object, name string) (value string, found bool)
- func Has(obj metav1.Object, name string) bool
- func HasSkipRemediation(o metav1.Object) bool
- func HasWithPrefix(prefix string, annotations map[string]string) bool
- func IsPaused(obj metav1.Object) bool
- func Set(obj metav1.Object, name, value string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAnnotations ¶
AddAnnotations sets the desired annotations on the object and returns true if the annotations have changed.
func HasSkipRemediation ¶
HasSkipRemediation returns true if the object has the `skip-remediation` annotation.
func HasWithPrefix ¶
HasWithPrefix returns true if at least one of the annotations has the prefix specified.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.