Commit bea36800 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch...

Merge branch '255878-review-app-existing-poddisruptionbudget-on-review-master2-ho-bqf4ik' into 'master'

Handle non-existent helm release during cleanup

Closes #255878

See merge request gitlab-org/gitlab!43515
parents 32051a46 50ca4f84
......@@ -48,7 +48,13 @@ function delete_release() {
return
fi
# 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}"
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment