Unverified Commit 60d0ec57 authored by Kubernetes Prow Robot's avatar Kubernetes Prow Robot Committed by GitHub

Merge pull request #75301 from dashpole/plugin_watcher_fix

remove DevicePlugin test for feature gate that can no longer be set
parents 8fd63426 e64c08f8
...@@ -45,17 +45,12 @@ const ( ...@@ -45,17 +45,12 @@ const (
) )
// Serial because the test restarts Kubelet // Serial because the test restarts Kubelet
var _ = framework.KubeDescribe("Device Plugin [Feature:DevicePlugin][NodeFeature:DevicePlugin][Serial]", func() {
f := framework.NewDefaultFramework("device-plugin-errors")
testDevicePlugin(f, false, pluginapi.DevicePluginPath)
})
var _ = framework.KubeDescribe("Device Plugin [Feature:DevicePluginProbe][NodeFeature:DevicePluginProbe][Serial]", func() { var _ = framework.KubeDescribe("Device Plugin [Feature:DevicePluginProbe][NodeFeature:DevicePluginProbe][Serial]", func() {
f := framework.NewDefaultFramework("device-plugin-errors") f := framework.NewDefaultFramework("device-plugin-errors")
testDevicePlugin(f, true, "/var/lib/kubelet/plugins_registry") testDevicePlugin(f, "/var/lib/kubelet/plugins_registry")
}) })
func testDevicePlugin(f *framework.Framework, enablePluginWatcher bool, pluginSockDir string) { func testDevicePlugin(f *framework.Framework, pluginSockDir string) {
pluginSockDir = filepath.Join(pluginSockDir) + "/" pluginSockDir = filepath.Join(pluginSockDir) + "/"
Context("DevicePlugin", func() { Context("DevicePlugin", func() {
By("Enabling support for Kubelet Plugins Watcher") By("Enabling support for Kubelet Plugins Watcher")
...@@ -63,7 +58,6 @@ func testDevicePlugin(f *framework.Framework, enablePluginWatcher bool, pluginSo ...@@ -63,7 +58,6 @@ func testDevicePlugin(f *framework.Framework, enablePluginWatcher bool, pluginSo
if initialConfig.FeatureGates == nil { if initialConfig.FeatureGates == nil {
initialConfig.FeatureGates = map[string]bool{} initialConfig.FeatureGates = map[string]bool{}
} }
initialConfig.FeatureGates[string(features.KubeletPluginsWatcher)] = enablePluginWatcher
initialConfig.FeatureGates[string(features.KubeletPodResources)] = true initialConfig.FeatureGates[string(features.KubeletPodResources)] = true
}) })
It("Verifies the Kubelet device plugin functionality.", func() { It("Verifies the Kubelet device plugin functionality.", func() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment