From 541aea6faede4b30b473422082cf1e87921c5793 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 f8e490474136..7b3ca7608f03 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