Add pause annotation to bmh object

Change-Id: I245aa4e57f3e249b4dff740e3eb642f9c73890c0
This commit is contained in:
Battina, Sai (sb464f) 2021-03-25 13:45:29 -05:00
parent 4e296dacab
commit 5edde6b4f6

View File

@ -25,6 +25,9 @@ export CLUSTER_NAMESPACE=${CLUSTER_NAMESPACE:-"default"}
echo "Check Cluster Status"
kubectl --kubeconfig $KUBECONFIG --context $KUBECONFIG_EPHEMERAL_CONTEXT -n $CLUSTER_NAMESPACE get cluster target-cluster -o json | jq '.status.controlPlaneReady'
echo "Annotate BMH for target node"
kubectl --kubeconfig $KUBECONFIG --context $KUBECONFIG_EPHEMERAL_CONTEXT -n $CLUSTER_NAMESPACE annotate bmh $TARGET_NODE baremetalhost.metal3.io/paused=true
echo "Move Cluster Object to Target Cluster"
airshipctl phase run clusterctl-move