diff --git a/tools/deployment/35_deploy_worker_node.sh b/tools/deployment/35_deploy_worker_node.sh index ad95a3cfb..5e713cac3 100755 --- a/tools/deployment/35_deploy_worker_node.sh +++ b/tools/deployment/35_deploy_worker_node.sh @@ -24,17 +24,17 @@ export WORKER_NODE=${WORKER_NODE:-"$(airshipctl phase render workers-target \ sed 's/"//g')"} # Annotate node for hostconfig-operator -hosts=(`kubectl \ +hosts=$(kubectl \ --kubeconfig $KUBECONFIG \ --context $KUBECONFIG_TARGET_CONTEXT \ - --request-timeout 10s get nodes -o name`) + --request-timeout 10s get nodes -o name) for i in "${!hosts[@]}" do kubectl \ --kubeconfig $KUBECONFIG \ --context $KUBECONFIG_TARGET_CONTEXT \ - --request-timeout 10s annotate ${hosts[i]} secret=hco-ssh-auth + --request-timeout 10s annotate --overwrite ${hosts[i]} secret=hco-ssh-auth kubectl \ --kubeconfig $KUBECONFIG \ --context $KUBECONFIG_TARGET_CONTEXT \ @@ -48,10 +48,10 @@ done cd ${AIRSHIPCTL_PROJECT} ./tools/deployment/35_deploy_worker_node.sh -hosts=$(`kubectl \ +hosts=$(kubectl \ --kubeconfig $KUBECONFIG \ --context $KUBECONFIG_TARGET_CONTEXT \ - --request-timeout 10s get nodes -o name`) + --request-timeout 10s get nodes -o name) # Annotate node for hostconfig-operator for i in "${!hosts[@]}" @@ -59,7 +59,7 @@ do kubectl \ --kubeconfig $KUBECONFIG \ --context $KUBECONFIG_TARGET_CONTEXT \ - --request-timeout 10s annotate ${hosts[i]} secret=hco-ssh-auth + --request-timeout 10s annotate --overwrite ${hosts[i]} secret=hco-ssh-auth kubectl \ --kubeconfig $KUBECONFIG \ --context $KUBECONFIG_TARGET_CONTEXT \