@@ -134,18 +134,17 @@ func TestTaintBasedEvictions(t *testing.T) {
134
134
testCtx = testutils .InitTestScheduler (t , testCtx , true , nil )
135
135
defer testutils .CleanupTest (t , testCtx )
136
136
cs := testCtx .ClientSet
137
- informers := testCtx .InformerFactory
138
137
_ , err := cs .CoreV1 ().Namespaces ().Create (context .TODO (), testCtx .NS , metav1.CreateOptions {})
139
138
if err != nil {
140
139
t .Errorf ("Failed to create namespace %+v" , err )
141
140
}
142
141
143
142
// Start NodeLifecycleController for taint.
144
143
nc , err := nodelifecycle .NewNodeLifecycleController (
145
- informers .Coordination ().V1 ().Leases (),
146
- informers .Core ().V1 ().Pods (),
147
- informers .Core ().V1 ().Nodes (),
148
- informers .Apps ().V1 ().DaemonSets (),
144
+ externalInformers .Coordination ().V1 ().Leases (),
145
+ externalInformers .Core ().V1 ().Pods (),
146
+ externalInformers .Core ().V1 ().Nodes (),
147
+ externalInformers .Apps ().V1 ().DaemonSets (),
149
148
cs ,
150
149
5 * time .Second , // Node monitor grace period
151
150
time .Minute , // Node startup grace period
@@ -167,8 +166,8 @@ func TestTaintBasedEvictions(t *testing.T) {
167
166
// Waiting for all controller sync.
168
167
externalInformers .Start (testCtx .Ctx .Done ())
169
168
externalInformers .WaitForCacheSync (testCtx .Ctx .Done ())
170
- informers .Start (testCtx .Ctx .Done ())
171
- informers .WaitForCacheSync (testCtx .Ctx .Done ())
169
+ testCtx . InformerFactory .Start (testCtx .Ctx .Done ())
170
+ testCtx . InformerFactory .WaitForCacheSync (testCtx .Ctx .Done ())
172
171
173
172
nodeRes := v1.ResourceList {
174
173
v1 .ResourceCPU : resource .MustParse ("4000m" ),
0 commit comments