Skip to content

Commit

Permalink
Merge pull request #1753 from monicastanciu/tpl_cluster_global_values
Browse files Browse the repository at this point in the history
[ebs-csi-controller] Allow passing template value for clusterName
  • Loading branch information
k8s-ci-robot authored Sep 23, 2023
2 parents 6f85184 + 6d1fa16 commit 6fe468b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/aws-ebs-csi-driver/templates/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ spec:
{{- end }}
{{- if .Values.controller.podAnnotations }}
annotations:
{{- toYaml .Values.controller.podAnnotations | nindent 8 }}
{{- tpl ( .Values.controller.podAnnotations | toYaml ) . | nindent 8 }}
{{- end }}
spec:
nodeSelector:
Expand Down Expand Up @@ -75,7 +75,7 @@ spec:
{{- if .Values.controller.extraVolumeTags }}
{{- include "aws-ebs-csi-driver.extra-volume-tags" . | nindent 12 }}
{{- end }}
{{- with .Values.controller.k8sTagClusterId }}
{{- with (tpl (default "" .Values.controller.k8sTagClusterId) . ) }}
- --k8s-tag-cluster-id={{ . }}
{{- end }}
{{- if and (.Values.controller.enableMetrics) (not .Values.controller.httpEndpoint) }}
Expand Down

0 comments on commit 6fe468b

Please sign in to comment.