diff options
author | Grant Limberg <grant.limberg@zerotier.com> | 2018-11-11 23:06:24 -0800 |
---|---|---|
committer | Grant Limberg <grant.limberg@zerotier.com> | 2018-11-11 23:06:24 -0800 |
commit | 2f9712e6a721a57fe05bc21b03c12ec67d87e294 (patch) | |
tree | d9b7d45c3796fe280e135625401e0f2088c1f6cb | |
parent | f3d8846df31777661fe4749dd6055051d6eb70f4 (diff) | |
download | infinitytier-2f9712e6a721a57fe05bc21b03c12ec67d87e294.tar.gz infinitytier-2f9712e6a721a57fe05bc21b03c12ec67d87e294.zip |
utility script to update public controllers
-rwxr-xr-x | update_controllers.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/update_controllers.sh b/update_controllers.sh new file mode 100755 index 00000000..8d50c5bf --- /dev/null +++ b/update_controllers.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash + +if [ -z "$1" ] +then + echo "Must supply a docker tag" + exit 1 +fi + +TAG=$1 + +CONTROLLERS=( 12ac4a1e71 159924d630 17d709436c 1c33c1ced0 1d71939404 1d71939404 565799d8f6 6ab565387a 8056c2e21c 8850338390 8bd5124fd6 93afae5963 9bee8941b5 9f77fc393e a09acf0233 a84ac5c10a abfd31bd47 af78bf9436 c7c8172af1 d5e5fb6537 e4da7455b2 e5cd7a9e1c ea9349aa9c ) + +for c in ${CONTROLLERS[@]} +do + kubectl set image deployment controller-${c} ztcentral-controller=gcr.io/zerotier-central/ztcentral-controller:${TAG} +done |