labels

package
v0.4.8 Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package labels defines all label, annotation, and finalizer constants used by the Orkestra control plane. These identifiers form the contract between the runtime, admission webhooks, generators, CLI tooling, and developer-created workloads.

Nothing in this package performs logic — it only provides:

  • stable label keys
  • stable annotation keys
  • stable finalizer keys
  • helpers for constructing label sets
  • selectors used by the admission webhooks

This package is intentionally dependency‑free and safe to import from any layer of the system (runtime, CLI, generators, komposers, motifs, etc.).

Index

Constants

View Source
const AnnotationManagedBy = "orkestra.orkspace.io/managed-by"

AnnotationManagedBy identifies which Orkestra operator instance manages a CR.

View Source
const AnnotationManagedSince = "orkestra.orkspace.io/managed-since"

AnnotationManagedSince records when Orkestra first took ownership of a CR.

View Source
const CreatedByOrkDoctor = "orkdoctor"

CreatedByOrkDoctor marks resources created by orkdoctor. These are excluded from cleanup logic even if ownership matches.

View Source
const DeletionProtectionLabel = "orkestra.io/deletion-protection"

DeletionProtectionLabel marks resources that must not be deleted. Any object carrying:

orkestra.io/deletion-protection=true

will be matched by the deletion‑protection admission webhook. This protects both Orkestra control‑plane resources and developer‑opt‑in resources.

View Source
const FinalizerOrkestra = "orkestra.orkspace.io/finalizer"

FinalizerOrkestra ensures cleanup runs before a CR is removed.

View Source
const LabelCreatedBy = "app.kubernetes.io/createdBy"

LabelCreatedBy identifies the creator of a resource.

View Source
const Managed = "orkestra.orkspace.io/managed"

Managed marks resources that Orkestra actively manages.

View Source
const ManagedValue = "true"

ManagedValue is always "true".

View Source
const OrkestraOwner = "orkestra-owner"

OrkestraOwner identifies which CR owns a generated resource. Used by reconcile loops to determine whether a resource should be updated or deleted.

Variables

This section is empty.

Functions

func DeletionProtectionSelector added in v0.4.1

func DeletionProtectionSelector() *metav1.LabelSelector

DeletionProtectionSelector returns a LabelSelector matching only the deletion‑protection label. Used when constructing webhook configurations.

func OrkestraBaseLabels added in v0.4.1

func OrkestraBaseLabels() map[string]string

OrkestraBaseLabels returns a copy of the standard Orkestra control‑plane labels. Useful for generators and CLI commands that do not load Konfig.

func OrkestraResourceLabels added in v0.4.1

func OrkestraResourceLabels() map[string]string

OrkestraResourceLabels returns the internal label map used for control‑plane resources. Callers must treat the returned map as read‑only.

func OrkestraResourceSelector added in v0.4.1

func OrkestraResourceSelector() *metav1.LabelSelector

OrkestraResourceSelector returns the selector for Orkestra control‑plane resources.

func WithDeletionProtection

func WithDeletionProtection(m map[string]string) map[string]string

WithDeletionProtection returns a copy of m with the deletion‑protection label set to "true". The input map is never modified.

Types

This section is empty.

Jump to

Keyboard shortcuts

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