Skip to content

Commit 60d0ec5

Browse files
authored
Merge pull request kubernetes#75301 from dashpole/plugin_watcher_fix
remove DevicePlugin test for feature gate that can no longer be set
2 parents 8fd6342 + e64c08f commit 60d0ec5

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

test/e2e_node/device_plugin.go

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,25 +45,19 @@ const (
4545
)
4646

4747
// 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-
5348
var _ = framework.KubeDescribe("Device Plugin [Feature:DevicePluginProbe][NodeFeature:DevicePluginProbe][Serial]", func() {
5449
f := framework.NewDefaultFramework("device-plugin-errors")
55-
testDevicePlugin(f, true, "/var/lib/kubelet/plugins_registry")
50+
testDevicePlugin(f, "/var/lib/kubelet/plugins_registry")
5651
})
5752

58-
func testDevicePlugin(f *framework.Framework, enablePluginWatcher bool, pluginSockDir string) {
53+
func testDevicePlugin(f *framework.Framework, pluginSockDir string) {
5954
pluginSockDir = filepath.Join(pluginSockDir) + "/"
6055
Context("DevicePlugin", func() {
6156
By("Enabling support for Kubelet Plugins Watcher")
6257
tempSetCurrentKubeletConfig(f, func(initialConfig *kubeletconfig.KubeletConfiguration) {
6358
if initialConfig.FeatureGates == nil {
6459
initialConfig.FeatureGates = map[string]bool{}
6560
}
66-
initialConfig.FeatureGates[string(features.KubeletPluginsWatcher)] = enablePluginWatcher
6761
initialConfig.FeatureGates[string(features.KubeletPodResources)] = true
6862
})
6963
It("Verifies the Kubelet device plugin functionality.", func() {

0 commit comments

Comments
 (0)