diff options
author | Thong Kuah <tkuah@gitlab.com> | 2018-12-19 09:50:46 +1300 |
---|---|---|
committer | Thong Kuah <tkuah@gitlab.com> | 2019-01-04 10:28:25 +1300 |
commit | 1d41e58730ea5dece3f9db82271defb527771800 (patch) | |
tree | ede54bacee009f4068837eda5bd12fef175bec97 | |
parent | 23b6a2aea833e8b8484b51a82a310597711bbedf (diff) | |
download | gitlab-ce-1d41e58730ea5dece3f9db82271defb527771800.tar.gz |
Remove application secret on stopping environment
-rw-r--r-- | lib/gitlab/ci/templates/Auto-DevOps.gitlab-ci.yml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/gitlab/ci/templates/Auto-DevOps.gitlab-ci.yml b/lib/gitlab/ci/templates/Auto-DevOps.gitlab-ci.yml index 222856f9e14..90869701a59 100644 --- a/lib/gitlab/ci/templates/Auto-DevOps.gitlab-ci.yml +++ b/lib/gitlab/ci/templates/Auto-DevOps.gitlab-ci.yml @@ -919,6 +919,9 @@ rollout 100%: if [[ -n "$(helm ls -q "^$name$")" ]]; then helm delete --purge "$name" fi + + application_secret_name="${name}-secret" + kubectl delete secret --ignore-not-found -n "$KUBE_NAMESPACE" "$application_secret_name" } before_script: |