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
66c48aae
Commit
66c48aae
authored
Jul 19, 2018
by
Cheng Xing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Flexvolume e2e test for attachable driver: Introduced delay after pod deletion…
Flexvolume e2e test for attachable driver: Introduced delay after pod deletion to ensure detach happens
parent
158998b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
flexvolume.go
test/e2e/storage/flexvolume.go
+4
-0
No files found.
test/e2e/storage/flexvolume.go
View file @
66c48aae
...
@@ -47,6 +47,7 @@ const (
...
@@ -47,6 +47,7 @@ const (
gciVolumePluginDir
=
"/home/kubernetes/flexvolume"
gciVolumePluginDir
=
"/home/kubernetes/flexvolume"
gciVolumePluginDirLegacy
=
"/etc/srv/kubernetes/kubelet-plugins/volume/exec"
gciVolumePluginDirLegacy
=
"/etc/srv/kubernetes/kubelet-plugins/volume/exec"
gciVolumePluginDirVersion
=
"1.10.0"
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
...
@@ -253,6 +254,9 @@ var _ = utils.SIGDescribe("Flexvolumes", func() {
...
@@ -253,6 +254,9 @@ var _ = utils.SIGDescribe("Flexvolumes", func() {
framework
.
ExpectNoError
(
err
,
"Failed to wait client pod terminated: %v"
,
err
)
framework
.
ExpectNoError
(
err
,
"Failed to wait client pod terminated: %v"
,
err
)
}
}
// Detach might occur after pod deletion. Wait before deleting driver.
time
.
Sleep
(
detachTimeout
)
By
(
fmt
.
Sprintf
(
"uninstalling flexvolume %s from node %s"
,
driverInstallAs
,
node
.
Name
))
By
(
fmt
.
Sprintf
(
"uninstalling flexvolume %s from node %s"
,
driverInstallAs
,
node
.
Name
))
uninstallFlex
(
cs
,
&
node
,
"k8s"
,
driverInstallAs
)
uninstallFlex
(
cs
,
&
node
,
"k8s"
,
driverInstallAs
)
By
(
fmt
.
Sprintf
(
"uninstalling flexvolume %s from master"
,
driverInstallAs
))
By
(
fmt
.
Sprintf
(
"uninstalling flexvolume %s from master"
,
driverInstallAs
))
...
...
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