fix golint failures of test/e2e/storage/drivers

k3s-v1.15.3
SataQiu 2019-05-20 13:12:38 +08:00
parent 81a61ae0e3
commit b828e570b1
3 changed files with 4 additions and 2 deletions

View File

@ -595,7 +595,6 @@ test/e2e/chaosmonkey
test/e2e/common
test/e2e/lifecycle/bootstrap
test/e2e/scalability
test/e2e/storage/drivers
test/e2e/storage/testsuites
test/e2e/storage/utils
test/e2e/storage/vsphere

View File

@ -51,7 +51,9 @@ import (
)
const (
// GCEPDCSIProvisionerName is the name of GCE Persistent Disk CSI provisioner
GCEPDCSIProvisionerName = "pd.csi.storage.gke.io"
// GCEPDCSIZoneTopologyKey is the key of GCE Persistent Disk CSI zone topology
GCEPDCSIZoneTopologyKey = "topology.gke.io/zone"
)

View File

@ -1207,7 +1207,7 @@ func (g *gcePdDriver) GetDynamicProvisionStorageClass(config *testsuites.PerTest
return testsuites.GetStorageClass(provisioner, parameters, &delayedBinding, ns, suffix)
}
func (h *gcePdDriver) GetClaimSize() string {
func (g *gcePdDriver) GetClaimSize() string {
return "5Gi"
}
@ -1652,6 +1652,7 @@ var _ testsuites.TestDriver = &localDriver{}
var _ testsuites.PreprovisionedVolumeTestDriver = &localDriver{}
var _ testsuites.PreprovisionedPVTestDriver = &localDriver{}
// InitLocalDriverWithVolumeType initializes the local driver based on the volume type.
func InitLocalDriverWithVolumeType(volumeType utils.LocalVolumeType) func() testsuites.TestDriver {
maxFileSize := defaultLocalVolumeMaxFileSize
if maxFileSizeByVolType, ok := localVolumeMaxFileSizes[volumeType]; ok {