Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorThong Kuah <tkuah@gitlab.com>2018-12-18 23:50:46 +0300
committerThong Kuah <tkuah@gitlab.com>2019-01-04 00:28:25 +0300
commit1d41e58730ea5dece3f9db82271defb527771800 (patch)
treeede54bacee009f4068837eda5bd12fef175bec97 /lib
parent23b6a2aea833e8b8484b51a82a310597711bbedf (diff)
Remove application secret on stopping environment
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/ci/templates/Auto-DevOps.gitlab-ci.yml3
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: