Kubernetes · Arazzo Workflow
Kubernetes Apply Governance Labels to a Namespace
Version 1.0.0
Read a namespace, replace it carrying governance labels, and confirm the labels stuck.
View Spec
View on GitHub
AutomationCloud NativeCNCFContainersDeploymentOpen SourceOrchestrationScalingArazzoWorkflows
Provider
Workflows
namespace-labeling
Apply a set of governance labels and annotations to an existing namespace.
Reads the namespace for its current labels and resourceVersion, replaces the namespace with the supplied governance labels and annotations, and reads it back to confirm the labels were persisted and the namespace is still Active.
1
readNamespace
getNamespace
Read the namespace to confirm it exists, capture the labels already in place, and take the resourceVersion for an optimistic-concurrency replace.
2
applyLabels
replaceNamespace
Replace the namespace with the governance labels applied. The resourceVersion from the read makes the API server reject this write if another client changed the namespace in the meantime.
3
confirmLabels
getNamespace
Read the namespace back to confirm the governance labels persisted and that the namespace remains Active rather than Terminating.