mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Skip generic ephemeral tests if Immediate binding and topology keys set
This commit is contained in:
parent
1234d061c0
commit
538fd832aa
@ -111,6 +111,7 @@ func (p *ephemeralTestSuite) DefineTests(driver storageframework.TestDriver, pat
|
||||
resource *storageframework.VolumeResource
|
||||
}
|
||||
var (
|
||||
dInfo = driver.GetDriverInfo()
|
||||
eDriver storageframework.EphemeralTestDriver
|
||||
l local
|
||||
)
|
||||
@ -134,6 +135,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