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:
parent
404b32ef87
commit
c28947eba4
@ -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…
x
Reference in New Issue
Block a user