Skip to content

Commit 7dd27b9

Browse files
Merge pull request #21038 from openshift-cherrypick-robot/cherry-pick-21020-to-release-3.11
[release-3.11] Use standard node roles for conformance isolation
2 parents 65d05f3 + dbbc282 commit 7dd27b9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/extended/conformance-k8s.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,9 @@ oc adm policy add-scc-to-group privileged system:authenticated system:serviceacc
6767
oc adm policy remove-scc-from-group restricted system:authenticated
6868
oc adm policy remove-scc-from-group anyuid system:cluster-admins
6969
# Mark the masters and infra nodes as unschedulable so tests ignore them
70-
oc get nodes -o name -l 'role in (infra,master)' | xargs -L1 oc adm cordon
71-
unschedulable="$( oc get nodes -o name -l 'role in (infra,master)' | wc -l )"
70+
oc get nodes -o name -l 'node-role.kubernetes.io/master=true' | xargs -L1 oc adm cordon
71+
oc get nodes -o name -l 'node-role.kubernetes.io/infra=true' | xargs -L1 oc adm cordon
72+
unschedulable="$( ( oc get nodes -o name -l 'node-role.kubernetes.io/master=true'; oc get nodes -o name -l 'node-role.kubernetes.io/infra=true' ) | wc -l )"
7273
# TODO: undo these operations
7374

7475
# Execute Kubernetes prerequisites

0 commit comments

Comments
 (0)