mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Disable expansion in SC, if driver does not support it
This commit is contained in:
parent
e876d63ec2
commit
fa242ff102
@ -135,6 +135,10 @@ func (p *ephemeralTestSuite) DefineTests(driver storageframework.TestDriver, pat
|
|||||||
|
|
||||||
l = local{}
|
l = local{}
|
||||||
|
|
||||||
|
if !driver.GetDriverInfo().Capabilities[storageframework.CapOnlineExpansion] {
|
||||||
|
pattern.AllowExpansion = false
|
||||||
|
}
|
||||||
|
|
||||||
// Now do the more expensive test initialization.
|
// Now do the more expensive test initialization.
|
||||||
l.config = driver.PrepareTest(f)
|
l.config = driver.PrepareTest(f)
|
||||||
l.resource = storageframework.CreateVolumeResource(driver, l.config, pattern, e2evolume.SizeRange{})
|
l.resource = storageframework.CreateVolumeResource(driver, l.config, pattern, e2evolume.SizeRange{})
|
||||||
|
Loading…
Reference in New Issue
Block a user