figure out which deployments need to be patched during a deployment instead of guessing (#438)
This commit is contained in:
parent
dee2c137c8
commit
a1f93285e2
6
Makefile
6
Makefile
@ -110,10 +110,10 @@ install-deps:
|
|||||||
|
|
||||||
.PHONY: deploy
|
.PHONY: deploy
|
||||||
deploy:
|
deploy:
|
||||||
./scripts/deploy.staging.sh satellite storjlabs/satellite:${TAG}
|
for deployment in $$(kubectl --context nonprod -n v3 get deployment -l app=storagenode --output=jsonpath='{.items..metadata.name}'); do \
|
||||||
for i in $(shell seq 1 60); do \
|
kubectl --context nonprod --namespace v3 patch deployment $$deployment -p"{\"spec\":{\"template\":{\"spec\":{\"containers\":[{\"name\":\"storagenode\",\"image\":\"storjlabs/storagenode:${TAG}\"}]}}}}" ; \
|
||||||
./scripts/deploy.staging.sh storagenode-$$i storjlabs/storagenode:${TAG}; \
|
|
||||||
done
|
done
|
||||||
|
kubectl --context nonprod --namespace v3 patch deployment satellite -p"{\"spec\":{\"template\":{\"spec\":{\"containers\":[{\"name\":\"satellite\",\"image\":\"storjlabs/satellite:${TAG}\"}]}}}}"
|
||||||
|
|
||||||
.PHONY: binary
|
.PHONY: binary
|
||||||
binary: CUSTOMTAG = -${GOOS}-${GOARCH}
|
binary: CUSTOMTAG = -${GOOS}-${GOARCH}
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
PROJECT_NAME=$1
|
|
||||||
CONTAINER=$2
|
|
||||||
|
|
||||||
kubectl config set-cluster nonprod
|
|
||||||
kubectl --namespace v3 patch deployment $PROJECT_NAME -p"{\"spec\":{\"template\":{\"spec\":{\"containers\":[{\"name\":\"$PROJECT_NAME\",\"image\":\"$CONTAINER\"}]}}}}"
|
|
Loading…
Reference in New Issue
Block a user