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
b828e570
Commit
b828e570
authored
May 20, 2019
by
SataQiu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix golint failures of test/e2e/storage/drivers
parent
81a61ae0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
.golint_failures
hack/.golint_failures
+0
-1
csi.go
test/e2e/storage/drivers/csi.go
+2
-0
in_tree.go
test/e2e/storage/drivers/in_tree.go
+2
-1
No files found.
hack/.golint_failures
View file @
b828e570
...
@@ -595,7 +595,6 @@ test/e2e/chaosmonkey
...
@@ -595,7 +595,6 @@ test/e2e/chaosmonkey
test/e2e/common
test/e2e/common
test/e2e/lifecycle/bootstrap
test/e2e/lifecycle/bootstrap
test/e2e/scalability
test/e2e/scalability
test/e2e/storage/drivers
test/e2e/storage/testsuites
test/e2e/storage/testsuites
test/e2e/storage/utils
test/e2e/storage/utils
test/e2e/storage/vsphere
test/e2e/storage/vsphere
...
...
test/e2e/storage/drivers/csi.go
View file @
b828e570
...
@@ -51,7 +51,9 @@ import (
...
@@ -51,7 +51,9 @@ import (
)
)
const
(
const
(
// GCEPDCSIProvisionerName is the name of GCE Persistent Disk CSI provisioner
GCEPDCSIProvisionerName
=
"pd.csi.storage.gke.io"
GCEPDCSIProvisionerName
=
"pd.csi.storage.gke.io"
// GCEPDCSIZoneTopologyKey is the key of GCE Persistent Disk CSI zone topology
GCEPDCSIZoneTopologyKey
=
"topology.gke.io/zone"
GCEPDCSIZoneTopologyKey
=
"topology.gke.io/zone"
)
)
...
...
test/e2e/storage/drivers/in_tree.go
View file @
b828e570
...
@@ -1207,7 +1207,7 @@ func (g *gcePdDriver) GetDynamicProvisionStorageClass(config *testsuites.PerTest
...
@@ -1207,7 +1207,7 @@ func (g *gcePdDriver) GetDynamicProvisionStorageClass(config *testsuites.PerTest
return
testsuites
.
GetStorageClass
(
provisioner
,
parameters
,
&
delayedBinding
,
ns
,
suffix
)
return
testsuites
.
GetStorageClass
(
provisioner
,
parameters
,
&
delayedBinding
,
ns
,
suffix
)
}
}
func
(
h
*
gcePdDriver
)
GetClaimSize
()
string
{
func
(
g
*
gcePdDriver
)
GetClaimSize
()
string
{
return
"5Gi"
return
"5Gi"
}
}
...
@@ -1652,6 +1652,7 @@ var _ testsuites.TestDriver = &localDriver{}
...
@@ -1652,6 +1652,7 @@ var _ testsuites.TestDriver = &localDriver{}
var
_
testsuites
.
PreprovisionedVolumeTestDriver
=
&
localDriver
{}
var
_
testsuites
.
PreprovisionedVolumeTestDriver
=
&
localDriver
{}
var
_
testsuites
.
PreprovisionedPVTestDriver
=
&
localDriver
{}
var
_
testsuites
.
PreprovisionedPVTestDriver
=
&
localDriver
{}
// InitLocalDriverWithVolumeType initializes the local driver based on the volume type.
func
InitLocalDriverWithVolumeType
(
volumeType
utils
.
LocalVolumeType
)
func
()
testsuites
.
TestDriver
{
func
InitLocalDriverWithVolumeType
(
volumeType
utils
.
LocalVolumeType
)
func
()
testsuites
.
TestDriver
{
maxFileSize
:=
defaultLocalVolumeMaxFileSize
maxFileSize
:=
defaultLocalVolumeMaxFileSize
if
maxFileSizeByVolType
,
ok
:=
localVolumeMaxFileSizes
[
volumeType
];
ok
{
if
maxFileSizeByVolType
,
ok
:=
localVolumeMaxFileSizes
[
volumeType
];
ok
{
...
...
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