Skip to content

Commit 595d1b5

Browse files
authored
feat(helm): support templating in service account annotations (#4374)
Enables Helm template functions in serviceAccount.annotations. Allowing dynamic values like AWS account IDs for [EKS IRSA role ARNs](https://docs.aws.amazon.com/eks/latest/userguide/associate-service-account-role.html). Signed-off-by: Samuel Masuy <samuel.masuy@goto.com>
1 parent 295d2e0 commit 595d1b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

helm/aws-load-balancer-controller/templates/serviceaccount.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ metadata:
88
{{- include "aws-load-balancer-controller.labels" . | nindent 4 }}
99
{{- with .Values.serviceAccount.annotations }}
1010
annotations:
11-
{{- toYaml . | nindent 4 }}
11+
{{- tpl (toYaml .) $ | nindent 4 }}
1212
{{- end }}
1313
automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }}
1414
{{- with .Values.serviceAccount.imagePullSecrets }}

0 commit comments

Comments
 (0)