@@ -26,7 +26,6 @@ import (
26
26
v1 "k8s.io/api/core/v1"
27
27
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
28
28
csilibplugins "k8s.io/csi-translation-lib/plugins"
29
- "k8s.io/kubernetes/pkg/scheduler/algorithm/predicates"
30
29
framework "k8s.io/kubernetes/pkg/scheduler/framework/v1alpha1"
31
30
fakelisters "k8s.io/kubernetes/pkg/scheduler/listers/fake"
32
31
utilpointer "k8s.io/utils/pointer"
@@ -1183,7 +1182,7 @@ func TestGCEPDLimits(t *testing.T) {
1183
1182
}
1184
1183
1185
1184
func TestGetMaxVols (t * testing.T ) {
1186
- previousValue := os .Getenv (predicates . KubeMaxPDVols )
1185
+ previousValue := os .Getenv (KubeMaxPDVols )
1187
1186
1188
1187
tests := []struct {
1189
1188
rawMaxVols string
@@ -1209,17 +1208,17 @@ func TestGetMaxVols(t *testing.T) {
1209
1208
1210
1209
for _ , test := range tests {
1211
1210
t .Run (test .name , func (t * testing.T ) {
1212
- os .Setenv (predicates . KubeMaxPDVols , test .rawMaxVols )
1211
+ os .Setenv (KubeMaxPDVols , test .rawMaxVols )
1213
1212
result := getMaxVolLimitFromEnv ()
1214
1213
if result != test .expected {
1215
1214
t .Errorf ("expected %v got %v" , test .expected , result )
1216
1215
}
1217
1216
})
1218
1217
}
1219
1218
1220
- os .Unsetenv (predicates . KubeMaxPDVols )
1219
+ os .Unsetenv (KubeMaxPDVols )
1221
1220
if previousValue != "" {
1222
- os .Setenv (predicates . KubeMaxPDVols , previousValue )
1221
+ os .Setenv (KubeMaxPDVols , previousValue )
1223
1222
}
1224
1223
}
1225
1224
0 commit comments