Skip to content

Commit

Permalink
add volumeMode to the standard storage profile
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
bennyz authored and ahadas committed Mar 20, 2024
1 parent 313e20f commit fa4ba63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cluster/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

0 comments on commit fa4ba63

Please sign in to comment.