Skip to content

Commit 4d3ab5a

Browse files
authored
add script for pausing bmo management of control plane hosts (#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]>
1 parent f2c3b83 commit 4d3ab5a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

metal3-dev/pause-control-plane.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash -x
2+
3+
for host in $(oc get baremetalhost -n openshift-machine-api -o name | grep -e '-master-'); do
4+
oc annotate --overwrite -n openshift-machine-api "$host" \
5+
'baremetalhost.metal3.io/paused=""'
6+
done

0 commit comments

Comments
 (0)