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
77df3ff5
Commit
77df3ff5
authored
Jun 13, 2018
by
David Zhu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added attach/mount/check steps to CSI Driver E2E tests
parent
a7a081b5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
csi_attacher.go
pkg/volume/csi/csi_attacher.go
+1
-1
csi_volumes.go
test/e2e/storage/csi_volumes.go
+2
-0
No files found.
pkg/volume/csi/csi_attacher.go
View file @
77df3ff5
...
@@ -135,7 +135,7 @@ func (c *csiAttacher) waitForVolumeAttachmentInternal(volumeHandle, attachID str
...
@@ -135,7 +135,7 @@ func (c *csiAttacher) waitForVolumeAttachmentInternal(volumeHandle, attachID str
attach
,
err
:=
c
.
k8s
.
StorageV1beta1
()
.
VolumeAttachments
()
.
Get
(
attachID
,
meta
.
GetOptions
{})
attach
,
err
:=
c
.
k8s
.
StorageV1beta1
()
.
VolumeAttachments
()
.
Get
(
attachID
,
meta
.
GetOptions
{})
if
err
!=
nil
{
if
err
!=
nil
{
glog
.
Error
(
log
(
"attacher.WaitForAttach failed for volume [%s] (will continue to try): %v"
,
volumeHandle
,
err
))
glog
.
Error
(
log
(
"attacher.WaitForAttach failed for volume [%s] (will continue to try): %v"
,
volumeHandle
,
err
))
return
""
,
err
return
""
,
fmt
.
Errorf
(
"volume %v has GET error for volume attachment %v: %v"
,
volumeHandle
,
attachID
,
err
)
}
}
// if being deleted, fail fast
// if being deleted, fail fast
if
attach
.
GetDeletionTimestamp
()
!=
nil
{
if
attach
.
GetDeletionTimestamp
()
!=
nil
{
...
...
test/e2e/storage/csi_volumes.go
View file @
77df3ff5
...
@@ -132,6 +132,7 @@ func (h *hostpathCSIDriver) createStorageClassTest(node v1.Node) storageClassTes
...
@@ -132,6 +132,7 @@ func (h *hostpathCSIDriver) createStorageClassTest(node v1.Node) storageClassTes
claimSize
:
"1Gi"
,
claimSize
:
"1Gi"
,
expectedSize
:
"1Gi"
,
expectedSize
:
"1Gi"
,
nodeName
:
node
.
Name
,
nodeName
:
node
.
Name
,
attach
:
true
,
}
}
}
}
...
@@ -197,6 +198,7 @@ func (g *gcePDCSIDriver) createStorageClassTest(node v1.Node) storageClassTest {
...
@@ -197,6 +198,7 @@ func (g *gcePDCSIDriver) createStorageClassTest(node v1.Node) storageClassTest {
claimSize
:
"5Gi"
,
claimSize
:
"5Gi"
,
expectedSize
:
"5Gi"
,
expectedSize
:
"5Gi"
,
nodeName
:
node
.
Name
,
nodeName
:
node
.
Name
,
attach
:
true
,
}
}
}
}
...
...
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