Skip to content

Commit

Permalink
doc: improve comments in StorageClass example
Browse files Browse the repository at this point in the history
The comments of mkfsOptions and mountOptions are
modified to match the real behavior of the code.

Signed-off-by: Majid Garoosi <amoomajid99@gmail.com>
  • Loading branch information
MaGaroo authored and nixpanic committed Oct 20, 2023
1 parent b54d7cb commit 0a67d87
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/rbd/storageclass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ parameters:
#
# The default options depend on the csi.storage.k8s.io/fstype setting:
# - ext4: "-m0 -Enodiscard,lazy_itable_init=1,lazy_journal_init=1"
# - xfs: "-onouuid -K"
# - xfs: "-K"
#
# mkfsOptions: "-m0 -Ediscard -i1024"

Expand Down Expand Up @@ -163,5 +163,7 @@ parameters:
# objectSize: <>
reclaimPolicy: Delete
allowVolumeExpansion: true

# If filesystem is xfs, nouuid will be automatically added to mountOptions
mountOptions:
- discard

0 comments on commit 0a67d87

Please sign in to comment.