Documentation ¶
Overview ¶
Package annotations implements annotation helper functions.
Index ¶
- func AddAnnotations(o metav1.Object, desired map[string]string) bool
- func HasPausedAnnotation(o metav1.Object) bool
- func HasSkipRemediationAnnotation(o metav1.Object) bool
- func HasWithPrefix(prefix string, annotations map[string]string) bool
- func IsExternallyManaged(o metav1.Object) bool
- func IsPaused(cluster *clusterv1.Cluster, o metav1.Object) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAnnotations ¶ added in v0.3.15
AddAnnotations sets the desired annotations on the object and returns true if the annotations have changed.
func HasPausedAnnotation ¶
HasPausedAnnotation returns true if the object has the `paused` annotation.
func HasSkipRemediationAnnotation ¶ added in v0.3.15
HasSkipRemediationAnnotation returns true if the object has the `skip-remediation` annotation.
func HasWithPrefix ¶ added in v0.3.9
HasWithPrefix returns true if at least one of the annotations has the prefix specified.
func IsExternallyManaged ¶ added in v0.4.0
IsExternallyManaged returns true if the object has the `managed-by` annotation.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.