File tree Expand file tree Collapse file tree 3 files changed +19
-21
lines changed Expand file tree Collapse file tree 3 files changed +19
-21
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ go_library(
10
10
"//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library" ,
11
11
"//staging/src/k8s.io/apimachinery/pkg/util/uuid:go_default_library" ,
12
12
"//test/e2e/framework:go_default_library" ,
13
- "//vendor/k8s.io/klog:go_default_library" ,
14
13
],
15
14
)
16
15
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ import (
20
20
v1 "k8s.io/api/core/v1"
21
21
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
22
22
"k8s.io/apimachinery/pkg/util/uuid"
23
- "k8s.io/klog"
24
23
"k8s.io/kubernetes/test/e2e/framework"
25
24
)
26
25
@@ -62,21 +61,3 @@ func NVIDIADevicePlugin() *v1.Pod {
62
61
p .Spec .Affinity = nil
63
62
return p
64
63
}
65
-
66
- // GetGPUDevicePluginImage returns the image of GPU device plugin.
67
- func GetGPUDevicePluginImage () string {
68
- ds , err := framework .DsFromManifest (GPUDevicePluginDSYAML )
69
- if err != nil {
70
- klog .Errorf ("Failed to parse the device plugin image: %v" , err )
71
- return ""
72
- }
73
- if ds == nil {
74
- klog .Errorf ("Failed to parse the device plugin image: the extracted DaemonSet is nil" )
75
- return ""
76
- }
77
- if len (ds .Spec .Template .Spec .Containers ) < 1 {
78
- klog .Errorf ("Failed to parse the device plugin image: cannot extract the container from YAML" )
79
- return ""
80
- }
81
- return ds .Spec .Template .Spec .Containers [0 ].Image
82
- }
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ var NodeImageWhiteList = sets.NewString(
53
53
imageutils .GetE2EImage (imageutils .Perl ),
54
54
imageutils .GetE2EImage (imageutils .Nonewprivs ),
55
55
imageutils .GetPauseImageName (),
56
- gpu . GetGPUDevicePluginImage (),
56
+ getGPUDevicePluginImage (),
57
57
"gcr.io/kubernetes-e2e-test-images/node-perf/npb-is:1.0" ,
58
58
"gcr.io/kubernetes-e2e-test-images/node-perf/npb-ep:1.0" ,
59
59
"gcr.io/kubernetes-e2e-test-images/node-perf/tf-wide-deep-amd64:1.0" ,
@@ -167,3 +167,21 @@ func PrePullAllImages() error {
167
167
}
168
168
return nil
169
169
}
170
+
171
+ // getGPUDevicePluginImage returns the image of GPU device plugin.
172
+ func getGPUDevicePluginImage () string {
173
+ ds , err := framework .DsFromManifest (gpu .GPUDevicePluginDSYAML )
174
+ if err != nil {
175
+ klog .Errorf ("Failed to parse the device plugin image: %v" , err )
176
+ return ""
177
+ }
178
+ if ds == nil {
179
+ klog .Errorf ("Failed to parse the device plugin image: the extracted DaemonSet is nil" )
180
+ return ""
181
+ }
182
+ if len (ds .Spec .Template .Spec .Containers ) < 1 {
183
+ klog .Errorf ("Failed to parse the device plugin image: cannot extract the container from YAML" )
184
+ return ""
185
+ }
186
+ return ds .Spec .Template .Spec .Containers [0 ].Image
187
+ }
You can’t perform that action at this time.
0 commit comments