Skip to content
Snippets Groups Projects
Unverified Commit abbfb35d authored by Varac's avatar Varac
Browse files

Delete namespace if it exists

Fixes: #1037
parent a7873ebe
No related branches found
No related tags found
1 merge request!189Resolve "CI: Check if namespace exists"
......@@ -75,6 +75,7 @@ install-helmrelease:
# Make sure TLS certificate secrets for different MRs do not clash
- sed -i "s/files-cert/files-cert-nc$CI_MERGE_REQUEST_IID/" values-ci.yaml
- sed -i "s/office-cert/office-cert-nc$CI_MERGE_REQUEST_IID/" values-ci.yaml
- kubectl get namespace "nc$CI_MERGE_REQUEST_IID" && kubectl delete namespace "nc$CI_MERGE_REQUEST_IID"
- kubectl create namespace "nc$CI_MERGE_REQUEST_IID"
- helm install -n nc$CI_MERGE_REQUEST_IID --wait "nc$CI_MERGE_REQUEST_IID" . -f values-ci.yaml
environment:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment