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
6032a1e2
Commit
6032a1e2
authored
Nov 27, 2018
by
Michelle Au
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove legacy gci flex directory from e2e tests
parent
8848740f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
22 deletions
+3
-22
flexvolume.go
test/e2e/storage/flexvolume.go
+3
-22
No files found.
test/e2e/storage/flexvolume.go
View file @
6032a1e2
...
@@ -44,10 +44,8 @@ const (
...
@@ -44,10 +44,8 @@ const (
// On gci, root is read-only and controller-manager containerized. Assume
// On gci, root is read-only and controller-manager containerized. Assume
// controller-manager has started with --flex-volume-plugin-dir equal to this
// controller-manager has started with --flex-volume-plugin-dir equal to this
// (see cluster/gce/config-test.sh)
// (see cluster/gce/config-test.sh)
gciVolumePluginDir
=
"/home/kubernetes/flexvolume"
gciVolumePluginDir
=
"/home/kubernetes/flexvolume"
gciVolumePluginDirLegacy
=
"/etc/srv/kubernetes/kubelet-plugins/volume/exec"
detachTimeout
=
10
*
time
.
Second
gciVolumePluginDirVersion
=
"1.10.0"
detachTimeout
=
10
*
time
.
Second
)
)
// testFlexVolume tests that a client pod using a given flexvolume driver
// testFlexVolume tests that a client pod using a given flexvolume driver
...
@@ -130,24 +128,7 @@ func uninstallFlex(c clientset.Interface, node *v1.Node, vendor, driver string)
...
@@ -130,24 +128,7 @@ func uninstallFlex(c clientset.Interface, node *v1.Node, vendor, driver string)
func
getFlexDir
(
c
clientset
.
Interface
,
node
*
v1
.
Node
,
vendor
,
driver
string
)
string
{
func
getFlexDir
(
c
clientset
.
Interface
,
node
*
v1
.
Node
,
vendor
,
driver
string
)
string
{
volumePluginDir
:=
defaultVolumePluginDir
volumePluginDir
:=
defaultVolumePluginDir
if
framework
.
ProviderIs
(
"gce"
)
{
if
framework
.
ProviderIs
(
"gce"
)
{
if
node
==
nil
&&
framework
.
MasterOSDistroIs
(
"gci"
,
"ubuntu"
)
{
volumePluginDir
=
gciVolumePluginDir
v
,
err
:=
getMasterVersion
(
c
)
if
err
!=
nil
{
framework
.
Failf
(
"Error getting master version: %v"
,
err
)
}
if
v
.
AtLeast
(
versionutil
.
MustParseGeneric
(
gciVolumePluginDirVersion
))
{
volumePluginDir
=
gciVolumePluginDir
}
else
{
volumePluginDir
=
gciVolumePluginDirLegacy
}
}
else
if
node
!=
nil
&&
framework
.
NodeOSDistroIs
(
"gci"
,
"ubuntu"
)
{
if
getNodeVersion
(
node
)
.
AtLeast
(
versionutil
.
MustParseGeneric
(
gciVolumePluginDirVersion
))
{
volumePluginDir
=
gciVolumePluginDir
}
else
{
volumePluginDir
=
gciVolumePluginDirLegacy
}
}
}
}
flexDir
:=
path
.
Join
(
volumePluginDir
,
fmt
.
Sprintf
(
"/%s~%s/"
,
vendor
,
driver
))
flexDir
:=
path
.
Join
(
volumePluginDir
,
fmt
.
Sprintf
(
"/%s~%s/"
,
vendor
,
driver
))
return
flexDir
return
flexDir
...
...
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