diff --git a/deploy/test.sh b/deploy/test.sh deleted file mode 100644 index 14ed620..0000000 --- a/deploy/test.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail - -export KUBECTL_APPLYSET=true - -input=$(cat) - -cmd_template=( helm template sgs "$SGS_WORKER_CHART_PATH" -f- ) - -cmd_apply=( - kubectl apply - --applyset workspacesets.sgs.snucse.org/sgs - --prune -f- -) -if [[ "$SGS_WORKER_APPLY" != "true" ]]; then - cmd_apply+=( --dry-run=client ) -fi - -cmd_register_harbor=( sgs-register-harbor ) - -<<<"$input" "${cmd_template[@]}" | "${cmd_apply[@]}" - -if [[ "$SGS_WORKER_APPLY" = "true" ]]; then - <<<"$input" "${cmd_register_harbor[@]}" -fi diff --git a/deploy/worker-sync.sh b/deploy/worker-sync.sh index c5811fe..ec877d8 100755 --- a/deploy/worker-sync.sh +++ b/deploy/worker-sync.sh @@ -3,7 +3,7 @@ set -euo pipefail export KUBECTL_APPLYSET=true -input=$(cat) +input=$(