mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
Merge pull request #109869 from mauriciopoppe/ephemeral-generic-patch-sc
Skip Generic Ephemeral Volume tests if VolumeBindingMode is immediate and it's a multi-topology environment
This commit is contained in:
commit
2eb2c88b1d
@ -109,6 +109,7 @@ func (p *ephemeralTestSuite) DefineTests(driver storageframework.TestDriver, pat
|
||||
resource *storageframework.VolumeResource
|
||||
}
|
||||
var (
|
||||
dInfo = driver.GetDriverInfo()
|
||||
eDriver storageframework.EphemeralTestDriver
|
||||
l local
|
||||
)
|
||||
@ -132,6 +133,11 @@ func (p *ephemeralTestSuite) DefineTests(driver storageframework.TestDriver, pat
|
||||
e2eskipper.Skipf("Cluster doesn't support %q volumes -- skipping", pattern.VolType)
|
||||
}
|
||||
}
|
||||
// A driver might support the Topology capability which is incompatible with the VolumeBindingMode immediate because
|
||||
// volumes might be provisioned immediately in a different zone to where the workload is located.
|
||||
if pattern.BindingMode == storagev1.VolumeBindingImmediate && len(dInfo.TopologyKeys) > 0 {
|
||||
e2eskipper.Skipf("VolumeBindingMode immediate is not compatible with a multi-topology environment.")
|
||||
}
|
||||
|
||||
l = local{}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user