mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Remove unnecessary snapshot ability check
This commit is contained in:
parent
c678434623
commit
24aa872a2a
12
test/e2e/storage/external/external.go
vendored
12
test/e2e/storage/external/external.go
vendored
@ -247,18 +247,6 @@ func (d *driverDefinition) SkipUnsupportedTest(pattern testpatterns.TestPattern)
|
||||
e2eskipper.Skipf("Driver %q does not support volume type %q - skipping", d.DriverInfo.Name, pattern.VolType)
|
||||
}
|
||||
|
||||
supported = false
|
||||
switch pattern.SnapshotType {
|
||||
case "":
|
||||
supported = true
|
||||
case testpatterns.DynamicCreatedSnapshot, testpatterns.PreprovisionedCreatedSnapshot:
|
||||
if d.SnapshotClass.FromName || d.SnapshotClass.FromFile != "" || d.SnapshotClass.FromExistingClassName != "" {
|
||||
supported = true
|
||||
}
|
||||
}
|
||||
if !supported {
|
||||
e2eskipper.Skipf("Driver %q does not support snapshot type %q - skipping", d.DriverInfo.Name, pattern.SnapshotType)
|
||||
}
|
||||
}
|
||||
|
||||
func (d *driverDefinition) GetDynamicProvisionStorageClass(e2econfig *testsuites.PerTestConfig, fsType string) *storagev1.StorageClass {
|
||||
|
Loading…
Reference in New Issue
Block a user