You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nodes=$(${OC_TOOL} get nodes --selector='node-role.kubernetes.io/worker' \
--selector='!node-role.kubernetes.io/master' -o name | sed -n 1,2p)
-l, --selector='': Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2)
Otherwise, it uses just the latest selector:
[kni@kni1-bootstrap cnv]$ oc get nodes
NAME STATUS ROLES AGE VERSION
kni1-master-0.cloud.lab.eng.bos.redhat.com Ready worker,worker-cnf 26h v1.17.1
kni1-master-1.cloud.lab.eng.bos.redhat.com Ready worker,worker-cnf 26h v1.17.1
kni1-vmaster-0 Ready master 27h v1.17.1
kni1-vmaster-1 Ready master 27h v1.17.1
kni1-vmaster-2 Ready master 27h v1.17.1
kni1-worker-0.cloud.lab.eng.bos.redhat.com Ready worker 27h v1.17.1
$ oc get nodes --selector='node-role.kubernetes.io/worker' --selector='!node-role.kubernetes.io/worker-cnf'
NAME STATUS ROLES AGE VERSION
kni1-vmaster-0 Ready master 27h v1.17.1
kni1-vmaster-1 Ready master 27h v1.17.1
kni1-vmaster-2 Ready master 27h v1.17.1
kni1-worker-0.cloud.lab.eng.bos.redhat.com Ready worker 27h v1.17.1
vs
$ oc get nodes --selector='node-role.kubernetes.io/worker,!node-role.kubernetes.io/worker-cnf'
NAME STATUS ROLES AGE VERSION
kni1-worker-0.cloud.lab.eng.bos.redhat.com Ready worker 27h v1.17.1
The text was updated successfully, but these errors were encountered:
cnf-features-deploy/hack/setup-test-cluster.sh
Lines 11 to 12 in ef3c35c
Otherwise, it uses just the latest selector:
vs
The text was updated successfully, but these errors were encountered: