Documentation
¶
Overview ¶
Package labels provides shared Kubernetes recommended label constants and builder functions for all operator-managed resources.
See: https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/
Index ¶
Constants ¶
View Source
const ( // Name identifies the application name (Kubernetes Recommended Label). Name = "app.kubernetes.io/name" // Component identifies the component within the architecture (e.g. "module", "workspace"). Component = "app.kubernetes.io/component" // PartOf identifies the higher-level application this resource belongs to. PartOf = "app.kubernetes.io/part-of" // ManagedBy identifies the tool/operator that manages the resource. ManagedBy = "app.kubernetes.io/managed-by" // Version identifies the current version of the application. Version = "app.kubernetes.io/version" // System is the fixed PartOf value shared across all OtterScale operators. System = "otterscale-system" // Operator is the ManagedBy value for this operator. Operator = "module-operator" )
Variables ¶
This section is empty.
Functions ¶
func Standard ¶
Standard returns the base set of Kubernetes recommended labels for all operator-managed resources. Domain-specific labels (e.g. module-template) should be added by the caller after invoking this function.
If version is empty, the app.kubernetes.io/version label is omitted, as an empty version label carries no semantic meaning per K8s conventions.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.