Skip to content

Commit

Permalink
feat: helm add storageclass annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
KarstenSiemer committed Apr 15, 2021
1 parent f89b143 commit 89a3d5f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/aws-efs-csi-driver/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "1.2.0"
name: aws-efs-csi-driver
description: A Helm chart for AWS EFS CSI Driver
version: 1.2.1
version: 1.2.2
kubeVersion: ">=1.17.0-0"
home: https://github.com/kubernetes-sigs/aws-efs-csi-driver
sources:
Expand Down
6 changes: 5 additions & 1 deletion charts/aws-efs-csi-driver/templates/storageclass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@ kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: {{ .name }}
{{- with .annotations }}
annotations:
{{ toYaml . | indent 4 }}
{{- end }}
provisioner: efs.csi.aws.com
{{- with .mountOptions }}
mountOptions:
mountOptions:
{{ toYaml . }}
{{- end }}
{{- with .parameters }}
Expand Down
3 changes: 3 additions & 0 deletions charts/aws-efs-csi-driver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ controller:
storageClasses: []
# Add StorageClass resources like:
# - name: efs-sc
## Use that annotation if you want this to your default storageclass
# annotations:
# storageclass.kubernetes.io/is-default-class: "true"
# mountOptions:
# - tls
# parameters:
Expand Down

0 comments on commit 89a3d5f

Please sign in to comment.