Kubernetes · Arazzo Workflow
Kubernetes Inventory and Tear Down a Namespace
Version 1.0.0
Record what a namespace contains, delete the namespace, and confirm it entered Terminating.
View Spec
View on GitHub
AutomationCloud NativeCNCFContainersDeploymentOpen SourceOrchestrationScalingArazzoWorkflows
Provider
Workflows
teardown-namespace
Inventory a namespace's workloads, then delete the namespace and confirm termination.
Captures the deployments, services, and pods a namespace holds, deletes the namespace so the cascade removes them all, and reads the namespace back to observe the Terminating phase and its finalizers.
1
inventoryDeployments
listNamespacedDeployments
List the deployments about to be destroyed by the namespace cascade, so the teardown leaves a record of the workloads that existed.
2
inventoryServices
listNamespacedServices
List the services in the namespace. LoadBalancer services deprovision their cloud load balancers as part of the cascade.
3
inventoryPods
listNamespacedPods
List the running pods so the record shows the live workload the teardown is about to terminate.
4
deleteNamespace
deleteNamespace
Delete the namespace. Every resource it scopes is deleted with it; the namespace stays in Terminating until the cascade completes.
5
confirmTerminating
getNamespace
Read the namespace back to confirm it is Terminating. A namespace stuck in this phase usually has a finalizer that has not been cleared.