annotations

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: Apache-2.0 Imports: 3 Imported by: 130

Documentation

Overview

Package annotations implements annotation helper functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAnnotations added in v0.3.15

func AddAnnotations(o metav1.Object, desired map[string]string) bool

AddAnnotations sets the desired annotations on the object and returns true if the annotations have changed.

func HasPaused added in v0.99.99

func HasPaused(o metav1.Object) bool

HasPaused returns true if the object has the `paused` annotation.

func HasPausedAnnotation

func HasPausedAnnotation(o metav1.Object) bool

HasPausedAnnotation returns true if the object has the `paused` annotation. Deprecated: this is going to be removed in a next release. Please use `HasPaused` instead.

func HasSkipRemediation added in v0.99.99

func HasSkipRemediation(o metav1.Object) bool

HasSkipRemediation returns true if the object has the `skip-remediation` annotation.

func HasSkipRemediationAnnotation added in v0.3.15

func HasSkipRemediationAnnotation(o metav1.Object) bool

HasSkipRemediationAnnotation returns true if the object has the `skip-remediation` annotation. Deprecated: this is going to be removed in a next release. Please use `HasSkipRemediation` instead.

func HasWithPrefix added in v0.3.9

func HasWithPrefix(prefix string, annotations map[string]string) bool

HasWithPrefix returns true if at least one of the annotations has the prefix specified.

func IsExternallyManaged added in v0.4.0

func IsExternallyManaged(o metav1.Object) bool

IsExternallyManaged returns true if the object has the `managed-by` annotation.

func IsPaused

func IsPaused(cluster *clusterv1.Cluster, o metav1.Object) bool

IsPaused returns true if the Cluster is paused or the object has the `paused` annotation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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