Commit 8dd872c1 authored by Nane Kratzke's avatar Nane Kratzke
Browse files

ID by namespace

parent 5ab6d665
......@@ -62,25 +62,25 @@ space-svc:
stage: deploy
when: manual
script:
- export NS=$(kubectl config view -o jsonpath="{..namespace}")
- NS=$(kubectl config view -o jsonpath="{..namespace}")
- kubectl label ns $NS istio-injection=disabled --overwrite
- mo deploy/space-deploy+svc.yaml | kubectl delete -f - || true
- mo deploy/space-deploy+svc.yaml | kubectl apply -f -
- ID=NS mo deploy/space-deploy+svc.yaml | kubectl delete -f - || true
- ID=NS mo deploy/space-deploy+svc.yaml | kubectl apply -f -
hiphop-svc:
stage: deploy
when: manual
script:
- export NS=$(kubectl config view -o jsonpath="{..namespace}")
- NS=$(kubectl config view -o jsonpath="{..namespace}")
- kubectl label ns $NS istio-injection=disabled --overwrite
- TIER=1 mo deploy/hiphop-deploy+svc.yaml | kubectl delete -f - || true
- TIER=2 mo deploy/hiphop-deploy+svc.yaml | kubectl delete -f - || true
- TIER=3 mo deploy/hiphop-deploy+svc.yaml | kubectl delete -f - || true
- TIER=4 mo deploy/hiphop-deploy+svc.yaml | kubectl delete -f - || true
- TIER=1 mo deploy/hiphop-deploy+svc.yaml | kubectl apply -f -
- TIER=2 mo deploy/hiphop-deploy+svc.yaml | kubectl apply -f -
- TIER=3 mo deploy/hiphop-deploy+svc.yaml | kubectl apply -f -
- TIER=4 mo deploy/hiphop-deploy+svc.yaml | kubectl apply -f -
- ID=NS TIER=1 mo deploy/hiphop-deploy+svc.yaml | kubectl delete -f - || true
- ID=NS TIER=2 mo deploy/hiphop-deploy+svc.yaml | kubectl delete -f - || true
- ID=NS TIER=3 mo deploy/hiphop-deploy+svc.yaml | kubectl delete -f - || true
- ID=NS TIER=4 mo deploy/hiphop-deploy+svc.yaml | kubectl delete -f - || true
- ID=NS TIER=1 mo deploy/hiphop-deploy+svc.yaml | kubectl apply -f -
- ID=NS TIER=2 mo deploy/hiphop-deploy+svc.yaml | kubectl apply -f -
- ID=NS TIER=3 mo deploy/hiphop-deploy+svc.yaml | kubectl apply -f -
- ID=NS TIER=4 mo deploy/hiphop-deploy+svc.yaml | kubectl apply -f -
cleanup:
stage: teardown
......
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