mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
fix golint failures of test/e2e/storage/drivers
This commit is contained in:
parent
81a61ae0e3
commit
b828e570b1
@ -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 (
|
|||||||
)
|
)
|
||||||
|
|
||||||
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
|
|||||||
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{}
|
|||||||
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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user