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
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-10-05 16:54:15 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-10-05 16:54:15 +0300
commitbe834a25982746ffd85252ff502df42bb88cb9d5 (patch)
treeb4d6a8ba0931e12fac08f05abea33a3b8ec2c8a2 /scripts/review_apps/review-apps.sh
parentee925a3597f27e92f83a50937a64068109675b3d (diff)
Add latest changes from gitlab-org/gitlab@13-5-stable-eev13.5.0-rc32
Diffstat (limited to 'scripts/review_apps/review-apps.sh')
-rwxr-xr-xscripts/review_apps/review-apps.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/review_apps/review-apps.sh b/scripts/review_apps/review-apps.sh
index 862c3b4bb62..1a1cfbbd5f6 100755
--- a/scripts/review_apps/review-apps.sh
+++ b/scripts/review_apps/review-apps.sh
@@ -48,7 +48,13 @@ function delete_release() {
return
fi
- helm_delete_release "${namespace}" "${release}"
+ # Check if helm release exists before attempting to delete
+ # There may be situation where k8s resources exist, but helm release does not,
+ # for example, following a failed helm install.
+ # In such cases, we still want to continue to clean up k8s resources.
+ if deploy_exists "${namespace}" "${release}"; then
+ helm_delete_release "${namespace}" "${release}"
+ fi
kubectl_cleanup_release "${namespace}" "${release}"
}