From 29fd9e56a36b61dae9f81a7bbbfeaa4da375f5b6 Mon Sep 17 00:00:00 2001 From: Jeff Peeler Date: Mon, 5 Mar 2018 14:49:25 -0500 Subject: [PATCH] Allow all nodes to run upstream kube tests This is extracted from https://github.com/openshift/origin/pull/18816/ in order to make hostpath tests pass. --- test/extended/util/test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/extended/util/test.go b/test/extended/util/test.go index 671532e5ca25..e2a7931c43da 100644 --- a/test/extended/util/test.go +++ b/test/extended/util/test.go @@ -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