diff options
author | Rémy Coutable <remy@rymai.me> | 2019-04-18 16:05:21 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2019-04-19 10:50:43 +0200 |
commit | d0efb430ce43953d659b1f62bf58a9ac41804bc3 (patch) | |
tree | 28ab2f96f6cf2b7899d644afdff912f37e24f1d5 /scripts | |
parent | 5572b168e6bf59725f84b28820fcfdc81d3ac7e8 (diff) | |
download | gitlab-ce-d0efb430ce43953d659b1f62bf58a9ac41804bc3.tar.gz |
Make the Review App cleanup more efficientretry-review-deploy-twice
Ensure that the cleanup starts right away.
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/review_apps/review-apps.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/review_apps/review-apps.sh b/scripts/review_apps/review-apps.sh index 51cfd145ba8..b55ce1af55e 100755 --- a/scripts/review_apps/review-apps.sh +++ b/scripts/review_apps/review-apps.sh @@ -68,7 +68,7 @@ function delete() { echoinfo "Deleting release '$name'..." true - helm delete --purge "$name" || true + helm delete --purge "$name" } function cleanup() { @@ -81,8 +81,8 @@ function cleanup() { kubectl -n "$KUBE_NAMESPACE" delete \ ingress,svc,pdb,hpa,deploy,statefulset,job,pod,secret,configmap,pvc,secret,clusterrole,clusterrolebinding,role,rolebinding,sa \ - -l release="$CI_ENVIRONMENT_SLUG" \ - || true + --now --ignore-not-found --include-uninitialized \ + -l release="$CI_ENVIRONMENT_SLUG" } function get_pod() { |