From c681ff2320c20dda44873428a42728ad86f1a3f8 Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Mon, 4 Apr 2022 10:09:43 +0200 Subject: [PATCH] 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. --- test/e2e/storage/framework/volume_resource.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/e2e/storage/framework/volume_resource.go b/test/e2e/storage/framework/volume_resource.go index 66b521692ec..6b578fcd776 100644 --- a/test/e2e/storage/framework/volume_resource.go +++ b/test/e2e/storage/framework/volume_resource.go @@ -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)