annotations

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: EUPL-1.2 Imports: 3 Imported by: 0

Documentation

Overview

Package annotations implements annotation helper functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAnnotations

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

func HasPaused(o metav1.Object) bool

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

func HasRemediateMachine

func HasRemediateMachine(o metav1.Object) bool

HasRemediateMachine returns true if the object has the `remediate-machine` annotation.

func HasSkipRemediation

func HasSkipRemediation(o metav1.Object) bool

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

func HasWithPrefix

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

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.

func ReplicasManagedByExternalAutoscaler

func ReplicasManagedByExternalAutoscaler(o metav1.Object) bool

ReplicasManagedByExternalAutoscaler returns true if the standard annotation for external autoscaler is present.

Types

This section is empty.

Jump to

Keyboard shortcuts

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