mirror of
https://github.com/corda/corda.git
synced 2024-12-29 09:18:58 +00:00
24 lines
439 B
Bash
24 lines
439 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
set -eux
|
||
|
|
||
|
# TODO: perhaps delte the namespace and recreate the PVCs?
|
||
|
|
||
|
kubectl delete configmap corda
|
||
|
kubectl delete configmap doorman
|
||
|
kubectl delete --all statefulsets
|
||
|
kubectl delete --all deployments
|
||
|
kubectl delete --all services
|
||
|
kubectl delete --all pods
|
||
|
kubectl delete --all jobs
|
||
|
|
||
|
while :; do
|
||
|
sleep 5
|
||
|
n=$(kubectl get pods | wc -l)
|
||
|
if [[ n -eq 0 ]]; then
|
||
|
break
|
||
|
fi
|
||
|
done
|
||
|
|
||
|
kubectl delete --all persistentvolumeclaims
|