From 5edde6b4f6febbe2c482c6c1bcee4b46d3f31727 Mon Sep 17 00:00:00 2001 From: "Battina, Sai (sb464f)" Date: Thu, 25 Mar 2021 13:45:29 -0500 Subject: [PATCH] Add pause annotation to bmh object Change-Id: I245aa4e57f3e249b4dff740e3eb642f9c73890c0 --- tools/deployment/33_cluster_move_target_node.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/deployment/33_cluster_move_target_node.sh b/tools/deployment/33_cluster_move_target_node.sh index 208aca826..4f8a9a189 100755 --- a/tools/deployment/33_cluster_move_target_node.sh +++ b/tools/deployment/33_cluster_move_target_node.sh @@ -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