diff --git a/deploy/charts/rawfile-csi/templates/02-storageclass.yaml b/deploy/charts/rawfile-csi/templates/02-storageclass.yaml new file mode 100644 index 0000000..77b4790 --- /dev/null +++ b/deploy/charts/rawfile-csi/templates/02-storageclass.yaml @@ -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 }} \ No newline at end of file diff --git a/deploy/charts/rawfile-csi/values.yaml b/deploy/charts/rawfile-csi/values.yaml index 69fe959..4a059c5 100644 --- a/deploy/charts/rawfile-csi/values.yaml +++ b/deploy/charts/rawfile-csi/values.yaml @@ -21,6 +21,13 @@ node: metrics: enabled: false +storageClass: + enabled: false + name: "csi-rawfile-default" + isDefault: true + reclaimPolicy: Delete + volumeBindingMode: WaitForFirstConsumer + imagePullSecrets: [] serviceMonitor: enabled: true