diff --git a/test/integration/scheduler/taint/main_test.go b/test/integration/scheduler/taint/main_test.go new file mode 100644 index 00000000000..08bda9c6b6f --- /dev/null +++ b/test/integration/scheduler/taint/main_test.go @@ -0,0 +1,27 @@ +/* +Copyright 2022 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package taint + +import ( + "testing" + + "k8s.io/kubernetes/test/integration/framework" +) + +func TestMain(m *testing.M) { + framework.EtcdMain(m.Run) +} diff --git a/test/integration/scheduler/taint_test.go b/test/integration/scheduler/taint/taint_test.go similarity index 99% rename from test/integration/scheduler/taint_test.go rename to test/integration/scheduler/taint/taint_test.go index e6624fb37ea..dabdfbd6028 100644 --- a/test/integration/scheduler/taint_test.go +++ b/test/integration/scheduler/taint/taint_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package scheduler +package taint // This file tests the Taint feature. @@ -37,6 +37,11 @@ import ( testutils "k8s.io/kubernetes/test/integration/util" ) +// imported from testutils +var ( + waitForPodUnschedulable = testutils.WaitForPodUnschedulable +) + func newPod(nsName, name string, req, limit v1.ResourceList) *v1.Pod { return &v1.Pod{ ObjectMeta: metav1.ObjectMeta{