diff --git a/charts/aws-ebs-csi-driver/Chart.yaml b/charts/aws-ebs-csi-driver/Chart.yaml index 4814b7f96f..6abdcbd8a0 100644 --- a/charts/aws-ebs-csi-driver/Chart.yaml +++ b/charts/aws-ebs-csi-driver/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: "0.8.1" name: aws-ebs-csi-driver description: A Helm chart for AWS EBS CSI Driver -version: 0.8.2 +version: 0.8.3 kubeVersion: ">=1.14.0-0" home: https://github.com/kubernetes-sigs/aws-ebs-csi-driver sources: diff --git a/charts/aws-ebs-csi-driver/templates/storageclass.yaml b/charts/aws-ebs-csi-driver/templates/storageclass.yaml new file mode 100644 index 0000000000..759ff1e0a2 --- /dev/null +++ b/charts/aws-ebs-csi-driver/templates/storageclass.yaml @@ -0,0 +1,15 @@ +{{- range .Values.storageClasses }} +kind: StorageClass +apiVersion: storage.k8s.io/v1 +metadata: + name: {{ .name }} +provisioner: ebs.csi.aws.com +volumeBindingMode: {{ default "WaitForFirstConsumer" .volumeBindingMode }} +{{- if hasKey . "reclaimPolicy" }} +reclaimPolicy: {{ .reclaimPolicy }} +{{- end }} +{{- with .parameters }} +parameters: +{{ toYaml . | indent 2 }} +{{- end }} +{{- end }} diff --git a/charts/aws-ebs-csi-driver/values.yaml b/charts/aws-ebs-csi-driver/values.yaml index 0e746c7893..44e5f4c0a7 100644 --- a/charts/aws-ebs-csi-driver/values.yaml +++ b/charts/aws-ebs-csi-driver/values.yaml @@ -98,3 +98,13 @@ serviceAccount: create: true name: ebs-snapshot-controller annotations: {} + +storageClasses: [] +# Add StorageClass resources like: +# - name: ebs-sc +# # defaults to WaitForFirstConsumer +# volumeBindingMode: WaitForFirstConsumer +# # defaults to Delete +# reclaimPolicy: Retain +# parameters: +# encrypted: "true"