constants

package
v1.104.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// WorkloadIdentityPrefix is used to prefix label and annotation keys used in relation to WorkloadIdentities.
	WorkloadIdentityPrefix = "workloadidentity." + groupName + "/"

	// AnnotationWorkloadIdentityNamespace is an annotation key used to indicate the namespace of the origin WorkloadIdentity.
	AnnotationWorkloadIdentityNamespace = WorkloadIdentityPrefix + "namespace"
	// AnnotationWorkloadIdentityName is an annotation key used to indicate the name of the origin WorkloadIdentity.
	AnnotationWorkloadIdentityName = WorkloadIdentityPrefix + "name"
	// AnnotationWorkloadIdentityContextObject is an annotation key used to indicate the context object for which the origin WorkloadIdentity will be used.
	AnnotationWorkloadIdentityContextObject = WorkloadIdentityPrefix + "context-object"
	// AnnotationWorkloadIdentityTokenRenewTimestamp is an annotation key used to indicate
	// the timestamp after which the workload identity token has to be renewed.
	AnnotationWorkloadIdentityTokenRenewTimestamp = WorkloadIdentityPrefix + "token-renew-timestamp"

	// DataKeyToken is the data key of a secret whose value contains a workload identity token.
	DataKeyToken = "token"
	// DataKeyConfig is the data key of a secret whose value contains a workload identity provider configuration.
	DataKeyConfig = "config"

	// LabelPurpose is a label used to indicate the purpose of the labeled resource.
	// Specific values might cause controllers to act on the said object.
	LabelPurpose = groupName + "/purpose"

	// LabelPurposeWorkloadIdentityTokenRequestor is a label value set on secrets indicating that a token should for a specific workload identity
	// should be requested and populated as data in the labeled secret.
	LabelPurposeWorkloadIdentityTokenRequestor = "workload-identity-token-requestor"

	// LabelWorkloadIdentityProvider is a label key indicating the target system type before which workload identity tokens will be presented.
	LabelWorkloadIdentityProvider = WorkloadIdentityPrefix + "provider"
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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