diff --git a/rollout_ainodes_sandbox.sh b/rollout_ainodes_sandbox.sh new file mode 100644 index 0000000..da53390 --- /dev/null +++ b/rollout_ainodes_sandbox.sh @@ -0,0 +1,175 @@ +#!/bin/bash + +# Bash strict mode +set -euo pipefail +IFS=$'\n\t' + +# Constants +NORMAL='\e[0m' +GREEN='\e[32m' +YELLOW='\e[33m' + +# List of all kind of services to reconcile, the order is not important +SERVICE_KINDS=( + "dynamicrouter" + "drmmanager" + "encrypt" + "dashmanifestgen" + "hlsmanifestgen" + "packager" + "xaudio" + "xcode" + "xsubtitles" + "segmenter" +) + +# List of the ainodes to reconcile in order, written ,, +AINODE_BATCH=( + "lbalancer-main,deployment,true" + "dynamicrouter-main,deployment,true" + "drmmanager-main,deployment,true" + "encrypt-main,deployment,true" + "dashmanifestgen-main,deployment,false" + "hlsmanifestgen-main,deployment,false" + "packager-main,deployment,true" + "xaudio-main,deployment,false" + "xsubtitles-main,deployment,false" + "xcode-ska,deployment,true" + "xcode-main,deployment,false" + "xcode-backup,deployment,true" + "segmenter-main,deployment,false" +) + +# Programm arguments parsing +NAMESPACE="" +WORKFLOWPOOL="" +WAIT_TIME="120" + +function help() { + cat <proxy.port & +pid="$!" +sleep 3 +kill -0 "${pid}" +api_port=$(cut -d':' -f 2