Skip to content

Commit

Permalink
add ability to set rbd image features
Browse files Browse the repository at this point in the history
  • Loading branch information
TorLdre authored and viktor-f committed Mar 25, 2024
1 parent 098c99c commit 6f4f001
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion rook/helmfile.d/values/cluster.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ cephBlockPools:
csi.storage.k8s.io/node-stage-secret-namespace: {{ $.Release.Namespace }}
csi.storage.k8s.io/provisioner-secret-name: rook-csi-rbd-provisioner
csi.storage.k8s.io/provisioner-secret-namespace: {{ $.Release.Namespace }}
imageFeatures: layering
imageFeatures: {{ . | get "parameters.imageFeatures" "layering" }}
imageFormat: "2"
{{- end }}

Expand Down
5 changes: 5 additions & 0 deletions rook/template/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ commons:
name: rook-ceph-block
# default: true

## If the storage nodes use kernel 5.4 or newer, set imageFeatures to
## "layering,fast-diff,object-map,deep-flatten,exclusive-lock"
# parameters:
# imageFeatures: layering

# allowVolumeExpansion: true
# volumeBindingMode: Immediate
# reclaimPolicy: Delete
Expand Down

0 comments on commit 6f4f001

Please sign in to comment.