labels

package
v0.8.0 Latest Latest
Warning

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

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

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"
)

Variables

This section is empty.

Functions

func Standard

func Standard(name, component, version string) map[string]string

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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