Skip to content

Commit

Permalink
add volumeMode
Browse files Browse the repository at this point in the history
Signed-off-by: Benny Zlotnik <[email protected]>
  • Loading branch information
bennyz committed Mar 19, 2024
1 parent 1ee798a commit 4b01b46
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 4b01b46

Please sign in to comment.