Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
e64c08f8
Commit
e64c08f8
authored
Mar 12, 2019
by
David Ashpole
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove DevicePlugin test for feature gate that can no longer be set
parent
9cbccd38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
device_plugin.go
test/e2e_node/device_plugin.go
+2
-8
No files found.
test/e2e_node/device_plugin.go
View file @
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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment