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 cb758ef..87800e7 100644 --- a/deploy/charts/rawfile-csi/values.yaml +++ b/deploy/charts/rawfile-csi/values.yaml @@ -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