summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2019-04-18 16:05:21 +0200
committerRémy Coutable <remy@rymai.me>2019-04-19 10:50:43 +0200
commitd0efb430ce43953d659b1f62bf58a9ac41804bc3 (patch)
tree28ab2f96f6cf2b7899d644afdff912f37e24f1d5 /scripts
parent5572b168e6bf59725f84b28820fcfdc81d3ac7e8 (diff)
downloadgitlab-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-xscripts/review_apps/review-apps.sh6
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() {