Skip to content

Commit

Permalink
ceph: add default field to filesystem-sc helm chart
Browse files Browse the repository at this point in the history
I Added the chance to default filesystem storageclass in helm chart

Signed-off-by: kubealex <al.rossi87@gmail.com>
(cherry picked from commit eead604)
  • Loading branch information
kubealex authored and travisn committed Sep 22, 2021
1 parent 1c37c6d commit c6bd36f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Expand Up @@ -13,6 +13,8 @@ apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: {{ $filesystem.storageClass.name }}
annotations:
storageclass.kubernetes.io/is-default-class: "{{ if default false $filesystem.storageClass.isDefault }}true{{ else }}false{{ end }}"
provisioner: {{ $root.Values.operatorNamespace }}.cephfs.csi.ceph.com
parameters:
fsName: {{ $filesystem.name }}
Expand Down
1 change: 1 addition & 0 deletions cluster/charts/rook-ceph-cluster/values.yaml
Expand Up @@ -369,6 +369,7 @@ cephFileSystems:
activeStandby: true
storageClass:
enabled: true
isDefault: false
name: ceph-filesystem
reclaimPolicy: Delete
# see https://github.com/rook/rook/blob/master/Documentation/ceph-filesystem.md#provision-storage for available configuration
Expand Down

0 comments on commit c6bd36f

Please sign in to comment.