From c28947eba462a66e9d7502a0cdc448fd7ac22691 Mon Sep 17 00:00:00 2001 From: Sreejith Punnapuzha Date: Fri, 16 Apr 2021 10:13:27 -0500 Subject: [PATCH] Fix labeling issue for deployment scripts This commit fixes labeling issue for deployment scripts in v2.0 branch Signed-off-by: Sreejith Punnapuzha Change-Id: I80af2027c12608d0ccf2f505b20e49acbddbdb2c --- tools/deployment/35_deploy_worker_node.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 \