Skip to content

Commit

Permalink
Create default storage class in chart (#3)
Browse files Browse the repository at this point in the history
* Create default storage class in chart

* parameterize reclaimPolicy and volumeBindingMode
  • Loading branch information
addyess authored Feb 6, 2024
1 parent bbe4b83 commit 2c7bb5b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
12 changes: 12 additions & 0 deletions deploy/charts/rawfile-csi/templates/02-storageclass.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{{- if .Values.storageClass.enabled }}
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: {{ .Values.storageClass.name }}
annotations:
storageclass.kubernetes.io/is-default-class: {{ .Values.storageClass.isDefault }}
provisioner: rawfile.csi.openebs.io
reclaimPolicy: {{ .Values.storageClass.reclaimPolicy }}
volumeBindingMode: {{ .Values.storageClass.volumeBindingMode }}
allowVolumeExpansion: true
{{- end }}
7 changes: 7 additions & 0 deletions deploy/charts/rawfile-csi/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ node:
metrics:
enabled: false

storageClass:
enabled: false
name: "csi-rawfile-default"
isDefault: true
reclaimPolicy: Delete
volumeBindingMode: WaitForFirstConsumer

imagePullSecrets: []
serviceMonitor:
enabled: true
Expand Down

0 comments on commit 2c7bb5b

Please sign in to comment.