Fix showLabels script to filter on bmh flavor

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).
This commit is contained in:
Rick Bartra 2020-11-20 02:28:15 +00:00
parent 654ce48335
commit c46682d52d

View File

@ -1,2 +1,3 @@
SCHEDULED=$1
kubectl get baremetalhosts --all-namespaces -l sip.airshipit.org/sip-scheduled=$SCHEDULED --show-labels|grep -v NAME|awk '{print "____________\n",$2,"\n\t",$5,$6}'|sed -e's/,/\n\t/g'
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'