Skip to content

Commit

Permalink
Allow all nodes to run upstream kube tests
Browse files Browse the repository at this point in the history
This is extracted from openshift#18816 in order
to make hostpath tests pass.
  • Loading branch information
Jeff Peeler authored and gnufied committed Mar 6, 2018
1 parent 30c11ad commit 29fd9e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/extended/util/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,9 @@ func createTestingNS(baseName string, c kclientset.Interface, labels map[string]
return ns, err
}
addRoleToE2EServiceAccounts(authorizationClient, []kapiv1.Namespace{*ns}, bootstrappolicy.ViewRoleName)

// in practice too many kube tests ignore scheduling constraints
allowAllNodeScheduling(c, ns.Name)
}

// some tests assume they can schedule to all nodes
Expand Down

0 comments on commit 29fd9e5

Please sign in to comment.