
The showLabels script only checks if a bmh is scheduled or not based on the passed argument (true or false), but does not correctly filter the type of bmh flavor (master or worker).
4 lines
240 B
Plaintext
Executable File
4 lines
240 B
Plaintext
Executable File
SCHEDULED=$1
|
|
FLAVOR=$2
|
|
kubectl get baremetalhosts --all-namespaces -l sip.airshipit.org/sip-scheduled=$SCHEDULED,airshipit.org/vino-flavor=$FLAVOR --show-labels|grep -v NAME|awk '{print "____________\n",$2,"\n\t",$5,$6}'|sed -e's/,/\n\t/g'
|