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 ¶
HasAnnotation returns true if the object has the specified annotation.
func HasClusterImportAnnotation ¶
HasClusterImportAnnotation returns true if the object has the `imported` annotation.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.