@@ -33,10 +33,10 @@ import (
33
33
"k8s.io/client-go/informers"
34
34
"k8s.io/client-go/tools/record"
35
35
"k8s.io/cloud-provider"
36
+ cloudproviderapi "k8s.io/cloud-provider/api"
36
37
fakecloud "k8s.io/cloud-provider/fake"
37
38
"k8s.io/kubernetes/pkg/controller/testutil"
38
39
kubeletapis "k8s.io/kubernetes/pkg/kubelet/apis"
39
- schedulerapi "k8s.io/kubernetes/pkg/scheduler/api"
40
40
41
41
"github.com/stretchr/testify/assert"
42
42
"k8s.io/klog"
@@ -187,7 +187,7 @@ func TestNodeInitialized(t *testing.T) {
187
187
Spec : v1.NodeSpec {
188
188
Taints : []v1.Taint {
189
189
{
190
- Key : schedulerapi .TaintExternalCloudProvider ,
190
+ Key : cloudproviderapi .TaintExternalCloudProvider ,
191
191
Value : "true" ,
192
192
Effect : v1 .TaintEffectNoSchedule ,
193
193
},
@@ -324,7 +324,7 @@ func TestGCECondition(t *testing.T) {
324
324
Spec : v1.NodeSpec {
325
325
Taints : []v1.Taint {
326
326
{
327
- Key : schedulerapi .TaintExternalCloudProvider ,
327
+ Key : cloudproviderapi .TaintExternalCloudProvider ,
328
328
Value : "true" ,
329
329
Effect : v1 .TaintEffectNoSchedule ,
330
330
},
@@ -409,7 +409,7 @@ func TestZoneInitialized(t *testing.T) {
409
409
Spec : v1.NodeSpec {
410
410
Taints : []v1.Taint {
411
411
{
412
- Key : schedulerapi .TaintExternalCloudProvider ,
412
+ Key : cloudproviderapi .TaintExternalCloudProvider ,
413
413
Value : "true" ,
414
414
Effect : v1 .TaintEffectNoSchedule ,
415
415
},
@@ -503,7 +503,7 @@ func TestNodeAddresses(t *testing.T) {
503
503
Effect : v1 .TaintEffectNoSchedule ,
504
504
},
505
505
{
506
- Key : schedulerapi .TaintExternalCloudProvider ,
506
+ Key : cloudproviderapi .TaintExternalCloudProvider ,
507
507
Value : "true" ,
508
508
Effect : v1 .TaintEffectNoSchedule ,
509
509
},
@@ -615,7 +615,7 @@ func TestNodeProvidedIPAddresses(t *testing.T) {
615
615
Effect : v1 .TaintEffectNoSchedule ,
616
616
},
617
617
{
618
- Key : schedulerapi .TaintExternalCloudProvider ,
618
+ Key : cloudproviderapi .TaintExternalCloudProvider ,
619
619
Value : "true" ,
620
620
Effect : v1 .TaintEffectNoSchedule ,
621
621
},
@@ -1016,7 +1016,7 @@ func TestNodeProviderID(t *testing.T) {
1016
1016
Effect : v1 .TaintEffectNoSchedule ,
1017
1017
},
1018
1018
{
1019
- Key : schedulerapi .TaintExternalCloudProvider ,
1019
+ Key : cloudproviderapi .TaintExternalCloudProvider ,
1020
1020
Value : "true" ,
1021
1021
Effect : v1 .TaintEffectNoSchedule ,
1022
1022
},
@@ -1099,7 +1099,7 @@ func TestNodeProviderIDAlreadySet(t *testing.T) {
1099
1099
Effect : v1 .TaintEffectNoSchedule ,
1100
1100
},
1101
1101
{
1102
- Key : schedulerapi .TaintExternalCloudProvider ,
1102
+ Key : cloudproviderapi .TaintExternalCloudProvider ,
1103
1103
Value : "true" ,
1104
1104
Effect : v1 .TaintEffectNoSchedule ,
1105
1105
},
@@ -1176,7 +1176,7 @@ func TestNodeProviderIDError(t *testing.T) {
1176
1176
Spec : v1.NodeSpec {
1177
1177
Taints : []v1.Taint {
1178
1178
{
1179
- Key : schedulerapi .TaintExternalCloudProvider ,
1179
+ Key : cloudproviderapi .TaintExternalCloudProvider ,
1180
1180
Value : "true" ,
1181
1181
Effect : v1 .TaintEffectNoSchedule ,
1182
1182
},
@@ -1264,7 +1264,7 @@ func TestNodeProviderIDNotImplemented(t *testing.T) {
1264
1264
Spec : v1.NodeSpec {
1265
1265
Taints : []v1.Taint {
1266
1266
{
1267
- Key : schedulerapi .TaintExternalCloudProvider ,
1267
+ Key : cloudproviderapi .TaintExternalCloudProvider ,
1268
1268
Value : "true" ,
1269
1269
Effect : v1 .TaintEffectNoSchedule ,
1270
1270
},
0 commit comments