mirror of https://github.com/k3s-io/k3s
fix golint failures of test/e2e/storage/drivers
parent
81a61ae0e3
commit
b828e570b1
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue