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
9ebf53ff
Unverified
Commit
9ebf53ff
authored
Nov 30, 2018
by
k8s-ci-robot
Committed by
GitHub
Nov 30, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #71480 from msau42/remove-legacy-flex-e2e
Remove legacy gci flex directory from e2e tests
parents
67bca448
6032a1e2
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 @
9ebf53ff
...
...
@@ -44,10 +44,8 @@ const (
// On gci, root is read-only and controller-manager containerized. Assume
// controller-manager has started with --flex-volume-plugin-dir equal to this
// (see cluster/gce/config-test.sh)
gciVolumePluginDir
=
"/home/kubernetes/flexvolume"
gciVolumePluginDirLegacy
=
"/etc/srv/kubernetes/kubelet-plugins/volume/exec"
gciVolumePluginDirVersion
=
"1.10.0"
detachTimeout
=
10
*
time
.
Second
gciVolumePluginDir
=
"/home/kubernetes/flexvolume"
detachTimeout
=
10
*
time
.
Second
)
// 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)
func
getFlexDir
(
c
clientset
.
Interface
,
node
*
v1
.
Node
,
vendor
,
driver
string
)
string
{
volumePluginDir
:=
defaultVolumePluginDir
if
framework
.
ProviderIs
(
"gce"
)
{
if
node
==
nil
&&
framework
.
MasterOSDistroIs
(
"gci"
,
"ubuntu"
)
{
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
}
}
volumePluginDir
=
gciVolumePluginDir
}
flexDir
:=
path
.
Join
(
volumePluginDir
,
fmt
.
Sprintf
(
"/%s~%s/"
,
vendor
,
driver
))
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