Skip to content

Commit

Permalink
Merge pull request #414 from KarstenSiemer/feat/helm-add-storageclass…
Browse files Browse the repository at this point in the history
…-annotations

feat: helm add storageclass annotations
  • Loading branch information
k8s-ci-robot authored Apr 21, 2021
2 parents d4f2e0c + 045a19c commit 04c715b
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.2
version: 1.2.3
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 04c715b

Please sign in to comment.