mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
close the kube-apiserver for taint tests
This commit is contained in:
parent
c672affad1
commit
cd675cca92
@ -27,7 +27,7 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"k8s.io/api/core/v1"
|
||||
v1 "k8s.io/api/core/v1"
|
||||
"k8s.io/apimachinery/pkg/api/resource"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/apimachinery/pkg/util/wait"
|
||||
|
@ -85,6 +85,8 @@ func TestTaintNodeByCondition(t *testing.T) {
|
||||
defer algorithmprovider.ApplyFeatureGates()()
|
||||
|
||||
context = initTestScheduler(t, context, false, nil)
|
||||
defer cleanupTest(t, context)
|
||||
|
||||
cs := context.clientSet
|
||||
informers := context.informerFactory
|
||||
nsName := context.ns.Name
|
||||
@ -655,6 +657,8 @@ func TestTaintBasedEvictions(t *testing.T) {
|
||||
for i, test := range tests {
|
||||
t.Run(test.name, func(t *testing.T) {
|
||||
context := initTestMaster(t, "taint-based-evictions", admission)
|
||||
defer cleanupTest(t, context)
|
||||
|
||||
// Build clientset and informers for controllers.
|
||||
externalClientset := kubernetes.NewForConfigOrDie(&restclient.Config{
|
||||
QPS: -1,
|
||||
|
Loading…
Reference in New Issue
Block a user