Commit 9952f043 authored by Nane Kratzke's avatar Nane Kratzke
Browse files

fixing for loop

parent 8ca64354
......@@ -42,7 +42,8 @@ space-services:
stage: deploy
script:
- |
for V in "V1 V2 V3"; do
for V in V1 V2 V3
do
ROLE=data VERSION=$V mo deploy/space-dep.yaml | kubectl delete -f - || true
ROLE=astros VERSION=$V mo deploy/space-dep.yaml | kubectl delete -f - || true
ROLE=position VERSION=$V mo deploy/space-dep.yaml | kubectl delete -f - || true
......@@ -63,9 +64,13 @@ shutdown:
script:
- NS=$(kubectl config view --output 'jsonpath={..namespace}')
- kubectl label ns $NS istio-injection=disabled --overwrite
- ROLE=data mo deploy/space-dep.yaml | kubectl delete -f -
- ROLE=astros mo deploy/space-dep.yaml | kubectl delete -f -
- ROLE=position mo deploy/space-dep.yaml | kubectl delete -f -
- ROLE=data mo deploy/space-svc.yaml | kubectl delete -f -
- ROLE=astros mo deploy/space-svc.yaml | kubectl delete -f -
- ROLE=position mo deploy/space-svc.yaml | kubectl delete -f -
\ No newline at end of file
- |
for V in V1 V2 V3
do
ROLE=data VERSION=$V mo deploy/space-dep.yaml | kubectl delete -f - || true
ROLE=astros VERSION=$V mo deploy/space-dep.yaml | kubectl delete -f - || true
ROLE=position VERSION=$V mo deploy/space-dep.yaml | kubectl delete -f - || true
ROLE=data VERSION=$V mo deploy/space-svc.yaml | kubectl delete -f - || true
ROLE=astros VERSION=$V mo deploy/space-svc.yaml | kubectl delete -f - || true
ROLE=position VERSION=$V mo deploy/space-svc.yaml | kubectl delete -f - || true
done
\ No newline at end of file
Supports Markdown
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