Commit 1d41e587 authored by Thong Kuah's avatar Thong Kuah

Remove application secret on stopping environment

parent 23b6a2ae
...@@ -919,6 +919,9 @@ rollout 100%: ...@@ -919,6 +919,9 @@ rollout 100%:
if [[ -n "$(helm ls -q "^$name$")" ]]; then if [[ -n "$(helm ls -q "^$name$")" ]]; then
helm delete --purge "$name" helm delete --purge "$name"
fi fi
application_secret_name="${name}-secret"
kubectl delete secret --ignore-not-found -n "$KUBE_NAMESPACE" "$application_secret_name"
} }
before_script: before_script:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment