storage e2e: set fstype for CSI ephemeral inline volumes

This doesn't affect in-tree testing, but some out-of-tree usage of the
pre-defined test patterns with non-default fstype.
This commit is contained in:
Patrick Ohly 2022-04-04 10:09:43 +02:00
parent c6153a93d0
commit c681ff2320

View File

@ -121,6 +121,9 @@ func CreateVolumeResource(driver TestDriver, config *PerTestConfig, pattern Test
VolumeAttributes: attributes,
},
}
if pattern.FsType != "" {
r.VolSource.CSI.FSType = &pattern.FsType
}
}
default:
framework.Failf("VolumeResource doesn't support: %s", pattern.VolType)