annotations

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2025 License: Apache-2.0 Imports: 1 Imported by: 6

Documentation

Index

Constants

View Source
const (
	// ClusterImportedAnnotation represents cluster imported annotation.
	ClusterImportedAnnotation = "imported"
	// NoCreatorRBACAnnotation represents no creator rbac annotation.
	// When it is set the webhook does not set the `field.cattle.io/creatorId` annotation
	// to clusters because the controllers will no longer be creating RBAC for the creator of the cluster.
	// This is required so that logs don't get flooded with errors when project handler and cluster handler
	// attempt to create `ClusterOwner` and `ProjectOwner` roles.
	NoCreatorRBACAnnotation = "field.cattle.io/no-creator-rbac"
	// EtcdAutomaticSnapshot represents automatically generated etcd snapshot.
	EtcdAutomaticSnapshot = "etcd.turtles.cattle.io/automatic-snapshot"
	// UpstreamSystemAgentAnnotation is a cluster annotation, allowing to pull the agent binary from the github repo instead of rancher url.
	UpstreamSystemAgentAnnotation = "cluster-api.cattle.io/upstream-system-agent"
	// LocalSystemAgentAnnotation is a cluster annotation, allowing to specify agent binary location from the node in the airgapped environment.
	LocalSystemAgentAnnotation = "cluster-api.cattle.io/local-system-agent"
)

Variables

This section is empty.

Functions

func HasAnnotation

func HasAnnotation(o metav1.Object, annotation string) bool

HasAnnotation returns true if the object has the specified annotation.

func HasClusterImportAnnotation

func HasClusterImportAnnotation(o metav1.Object) bool

HasClusterImportAnnotation returns true if the object has the `imported` annotation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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