Skip to content

Commit

Permalink
Merge pull request #21038 from openshift-cherrypick-robot/cherry-pick…
Browse files Browse the repository at this point in the history
…-21020-to-release-3.11

[release-3.11] Use standard node roles for conformance isolation
  • Loading branch information
openshift-merge-robot authored Sep 20, 2018
2 parents 65d05f3 + dbbc282 commit 7dd27b9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/extended/conformance-k8s.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ oc adm policy add-scc-to-group privileged system:authenticated system:serviceacc
oc adm policy remove-scc-from-group restricted system:authenticated
oc adm policy remove-scc-from-group anyuid system:cluster-admins
# Mark the masters and infra nodes as unschedulable so tests ignore them
oc get nodes -o name -l 'role in (infra,master)' | xargs -L1 oc adm cordon
unschedulable="$( oc get nodes -o name -l 'role in (infra,master)' | wc -l )"
oc get nodes -o name -l 'node-role.kubernetes.io/master=true' | xargs -L1 oc adm cordon
oc get nodes -o name -l 'node-role.kubernetes.io/infra=true' | xargs -L1 oc adm cordon
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 )"
# TODO: undo these operations

# Execute Kubernetes prerequisites
Expand Down

0 comments on commit 7dd27b9

Please sign in to comment.