Commit b828e570 authored by SataQiu's avatar SataQiu

fix golint failures of test/e2e/storage/drivers

parent 81a61ae0
...@@ -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
......
...@@ -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"
) )
......
...@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment