labels

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LabelKeyNamespaceName identifies the OpenChoreo namespace for resources.
	LabelKeyNamespaceName       = "openchoreo.dev/namespace"
	LabelKeyProjectName         = "openchoreo.dev/project"
	LabelKeyComponentName       = "openchoreo.dev/component"
	LabelKeyDeploymentTrackName = "openchoreo.dev/deployment-track"
	LabelKeyBuildName           = "openchoreo.dev/build"
	LabelKeyEnvironmentName     = "openchoreo.dev/environment"
	LabelKeyName                = "openchoreo.dev/name"
	LabelKeyDataPlaneName       = "openchoreo.dev/dataplane"
	LabelKeyBuildPlane          = "openchoreo.dev/build-plane"

	LabelKeyProjectUID     = "openchoreo.dev/project-uid"
	LabelKeyComponentUID   = "openchoreo.dev/component-uid"
	LabelKeyEnvironmentUID = "openchoreo.dev/environment-uid"

	// LabelKeyCreatedBy identifies which controller initially created a resource (audit trail).
	// Example: A namespace created by release-controller would have created-by=release-controller.
	// Note: For shared resources like namespaces, the creator and lifecycle manager may differ.
	LabelKeyCreatedBy = "openchoreo.dev/created-by"

	// LabelKeyManagedBy identifies which controller manages the lifecycle of a resource.
	// Example: Resources deployed by release-controller have managed-by=release-controller.
	LabelKeyManagedBy = "openchoreo.dev/managed-by"

	// LabelKeyReleaseResourceID identifies a specific resource within a release.
	LabelKeyReleaseResourceID = "openchoreo.dev/release-resource-id"

	// LabelKeyReleaseUID tracks which release UID owns/manages a resource.
	LabelKeyReleaseUID = "openchoreo.dev/release-uid"

	// LabelKeyReleaseName tracks the name of the release that manages a resource.
	LabelKeyReleaseName = "openchoreo.dev/release-name"

	// LabelKeyReleaseNamespace tracks the namespace of the release that manages a resource.
	LabelKeyReleaseNamespace = "openchoreo.dev/release-namespace"

	// LabelKeyNotificationChannelName identifies a notification channel resource (ConfigMap/Secret)
	// created by the observabilityalertsnotificationchannel controller.
	LabelKeyNotificationChannelName = "openchoreo.dev/notification-channel-name"

	// LabelKeyControlPlaneNamespace identifies a namespace as an OpenChoreo control plane namespace
	// that groups user resources (Projects, Components, Environments, etc.)
	// This label distinguishes control plane namespaces from:
	// - System namespaces (openchoreo-control-plane, openchoreo-data-plane, kube-system, etc.)
	// - User-created namespaces unrelated to OpenChoreo
	// - Data plane runtime namespaces (e.g., dp-*)
	LabelKeyControlPlaneNamespace = "openchoreo.dev/controlplane-namespace"

	// AnnotationKeyDPResourceHash contains a hash of all dataplane resources (excluding the main workload)
	// to trigger pod rollout when dependent ConfigMaps, Secrets, etc. change.
	AnnotationKeyDPResourceHash = "openchoreo.dev/dp-resource-hash"

	LabelValueManagedBy = "openchoreo-control-plane"
	// LabelValueTrue is the standard "true" value for boolean labels
	LabelValueTrue = "true"
)

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