cluster-api: sigs.k8s.io/cluster-api/util/annotations Index | Files

package annotations

import "sigs.k8s.io/cluster-api/util/annotations"

Index

Package Files

helpers.go

func AddAnnotations Uses

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 HasPausedAnnotation Uses

func HasPausedAnnotation(o metav1.Object) bool

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

func HasWithPrefix Uses

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

func IsPaused Uses

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

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

Package annotations imports 3 packages (graph) and is imported by 15 packages. Updated 2021-01-24. Refresh now. Tools for package owners.