Feature request: wrap tpl function around the use of rbac.serviceAccountAnnotation values to evaluate references to other values
It would be helpful to refer to other values when specifying a serviceAccount annotation like this:
rbac:
create: true
serviceAccountAnnotations:
eks.amazonaws.com/role-arn: arn:aws:iam::{{ .Values.global.accountId }}:role/{{ .Values.global.iamRoleName }}
This can easily be achieved by wrapping the tpl
function around the service-account.yaml template.
apiVersion: v1
kind: ServiceAccount
metadata:
{{- if .Values.rbac.serviceAccountAnnotations }}
annotations:
{{- range $key, $value := .Values.rbac.serviceAccountAnnotations }}
{{ $key }}: {{ tpl ($value) $ | quote }}
{{- end }}
...
Does anyone see any negative side effects?