Deleting ns and adding a sleep.

This commit is contained in:
smruthi2187
2018-02-08 13:58:44 -08:00
parent 610790244b
commit 2effade15d
+6 -1
View File
@@ -174,6 +174,9 @@ helm_install_fission() {
echo "Deleting old releases" echo "Deleting old releases"
helm list -q|xargs -I@ bash -c "helm_uninstall_fission @" helm list -q|xargs -I@ bash -c "helm_uninstall_fission @"
# deleting ns does take a while after command is issued.
sleep 45
echo "Installing fission" echo "Installing fission"
helm install \ helm install \
--wait \ --wait \
@@ -261,7 +264,9 @@ helm_uninstall_fission() {(set +e
echo "Uninstalling fission" echo "Uninstalling fission"
helm delete --purge $id helm delete --purge $id
kubectl delete ns f-$id kubectl delete ns f-$id || true
kubectl delete ns f-func-$id || true
kubectl delete ns fission-builder || true
)} )}
export -f helm_uninstall_fission export -f helm_uninstall_fission