Skip to content

Commit

Permalink
only pass needed context to helper
Browse files Browse the repository at this point in the history
  • Loading branch information
KarstenSiemer committed Apr 14, 2021
1 parent b4da7fc commit 56c373b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/aws-efs-csi-driver/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Create a string out of the map for controller tags flag
*/}}
{{- define "aws-efs-csi-driver.tags" -}}
{{- $tags := list -}}
{{ range $key, $val := .Values.controller.tags }}
{{ range $key, $val := . }}
{{- $tags = print $key ":" $val | append $tags -}}
{{- end -}}
{{- join " " $tags | quote -}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ spec:
# Uncomment below line to allow access point root directory to be deleted by controller.
#- --delete-access-point-root-dir
{{- if .Values.controller.tags }}
- --tags={{ include "aws-efs-csi-driver.tags" . }}
- --tags={{ include "aws-efs-csi-driver.tags" .Values.controller.tags }}
{{- end }}
env:
- name: CSI_ENDPOINT
Expand Down
4 changes: 2 additions & 2 deletions charts/aws-efs-csi-driver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ controller:
create: true
# Add additional tags to access points
tags: {}
# environment: prod
# region: us-east-1
# environment: prod
# region: us-east-1

storageClasses: []
# Add StorageClass resources like:
Expand Down

0 comments on commit 56c373b

Please sign in to comment.