mirror of
https://github.com/arangodb/kube-arangodb.git
synced 2024-12-14 11:57:37 +00:00
21 lines
381 B
Bash
Executable file
21 lines
381 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Delete a namespace and wait until it is gone
|
|
|
|
NS=$1
|
|
|
|
if [ -z $NS ]; then
|
|
echo "Specify a namespace argument"
|
|
exit 1
|
|
fi
|
|
|
|
kubectl delete namespace $NS --now --ignore-not-found
|
|
|
|
# Wait until its really gone
|
|
while :; do
|
|
response=$(kubectl get namespace $NS --template="non-empty" --ignore-not-found)
|
|
if [ -z $response ]; then
|
|
break
|
|
fi
|
|
sleep 0.5
|
|
done
|