Browse Source

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
changes/76/788576/6
Sreejith Punnapuzha 2 months ago
committed by Drew Walters
parent
commit
c28947eba4
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      tools/deployment/35_deploy_worker_node.sh

+ 6
- 6
tools/deployment/35_deploy_worker_node.sh 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 \


Loading…
Cancel
Save