Documentation
¶
Overview ¶
Package executionmode defines the immutable execution-plane identity shared by controllers and admission. A namespace belongs to exactly one mode.
Index ¶
Constants ¶
const NamespaceLabel = "orka.ai/controller-mode"
NamespaceLabel is the immutable namespace execution-mode claim.
Variables ¶
This section is empty.
Functions ¶
func DefaultBuiltInAgentContract ¶
func DefaultBuiltInAgentContract(agent *corev1alpha1.Agent, mode Mode) error
DefaultBuiltInAgentContract stamps the installation's immutable harness contract on a built-in Agent runtime when the trusted producer omitted it. Explicit selectors are never rewritten, and an opposite-mode selector is rejected before the object reaches admission.
Types ¶
type Mode ¶
type Mode string
Mode identifies the only execution contract an installation may serve.
func FromNamespace ¶
FromNamespace reads and validates a namespace's immutable mode claim.
func (Mode) ContractVersion ¶
func (m Mode) ContractVersion() corev1alpha1.AgentRuntimeContractVersion
ContractVersion returns the only harness contract admitted by the mode.