Fix labeling issue for deployment scripts

This commit fixes labeling issue for deployment scripts in v2.0 branch

Signed-off-by: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com>
Change-Id: I80af2027c12608d0ccf2f505b20e49acbddbdb2c
This commit is contained in:
Sreejith Punnapuzha 2021-04-16 10:13:27 -05:00
parent ff014d5095
commit f68ab76194
2 changed files with 7 additions and 7 deletions

View File

@ -45,7 +45,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 \

View File

@ -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 \