@@ -45,25 +45,19 @@ const (
45
45
)
46
46
47
47
// Serial because the test restarts Kubelet
48
- var _ = framework .KubeDescribe ("Device Plugin [Feature:DevicePlugin][NodeFeature:DevicePlugin][Serial]" , func () {
49
- f := framework .NewDefaultFramework ("device-plugin-errors" )
50
- testDevicePlugin (f , false , pluginapi .DevicePluginPath )
51
- })
52
-
53
48
var _ = framework .KubeDescribe ("Device Plugin [Feature:DevicePluginProbe][NodeFeature:DevicePluginProbe][Serial]" , func () {
54
49
f := framework .NewDefaultFramework ("device-plugin-errors" )
55
- testDevicePlugin (f , true , "/var/lib/kubelet/plugins_registry" )
50
+ testDevicePlugin (f , "/var/lib/kubelet/plugins_registry" )
56
51
})
57
52
58
- func testDevicePlugin (f * framework.Framework , enablePluginWatcher bool , pluginSockDir string ) {
53
+ func testDevicePlugin (f * framework.Framework , pluginSockDir string ) {
59
54
pluginSockDir = filepath .Join (pluginSockDir ) + "/"
60
55
Context ("DevicePlugin" , func () {
61
56
By ("Enabling support for Kubelet Plugins Watcher" )
62
57
tempSetCurrentKubeletConfig (f , func (initialConfig * kubeletconfig.KubeletConfiguration ) {
63
58
if initialConfig .FeatureGates == nil {
64
59
initialConfig .FeatureGates = map [string ]bool {}
65
60
}
66
- initialConfig .FeatureGates [string (features .KubeletPluginsWatcher )] = enablePluginWatcher
67
61
initialConfig .FeatureGates [string (features .KubeletPodResources )] = true
68
62
})
69
63
It ("Verifies the Kubelet device plugin functionality." , func () {
0 commit comments