Skip to content

Commit

Permalink
add script for pausing bmo management of control plane hosts (openshi…
Browse files Browse the repository at this point in the history
…ft-metal3#1075)

Sometimes when working on the baremetal-operator it is useful to have
it ignore hosts so the logs do not become cluttered with the usual
regular updates. This script applies the pause annotation to the
control plane hosts so the baremetal-operator will stop regularly
checking their power state.

Signed-off-by: Doug Hellmann <[email protected]>
  • Loading branch information
dhellmann authored Jul 31, 2020
1 parent f2c3b83 commit 4d3ab5a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions metal3-dev/pause-control-plane.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash -x

for host in $(oc get baremetalhost -n openshift-machine-api -o name | grep -e '-master-'); do
oc annotate --overwrite -n openshift-machine-api "$host" \
'baremetalhost.metal3.io/paused=""'
done

0 comments on commit 4d3ab5a

Please sign in to comment.