From 89e9884ca0e6a343a618724db8a2de824c843566 Mon Sep 17 00:00:00 2001 From: Benny Zlotnik Date: Tue, 19 Mar 2024 21:13:26 +0200 Subject: [PATCH] add volumeMode to the standard storage profile CDI started to enforce non-nil value for this field in v1.58.2, therefore setting this field to 'Filesystem' Signed-off-by: Benny Zlotnik --- cluster/common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cluster/common.sh b/cluster/common.sh index bdffe50..3f3f5d0 100755 --- a/cluster/common.sh +++ b/cluster/common.sh @@ -28,9 +28,9 @@ function k8s_grant_permissions { # workaround to https://github.com/kubevirt/kubevirt/issues/7078 function k8s_patch_storage_profile { - kubectl patch --type merge -p '{"spec": {"claimPropertySets": [{"accessModes": ["ReadWriteOnce"]}]}}' StorageProfile standard + kubectl patch --type merge -p '{"spec": {"claimPropertySets": [{ "volumeMode": "Filesystem", "accessModes": ["ReadWriteOnce"]}]}}' StorageProfile standard } function k8s_apply_volume_populator { kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/volume-data-source-validator/v1.0.1/client/config/crd/populator.storage.k8s.io_volumepopulators.yaml -} \ No newline at end of file +}