diff --git a/templates/helm/templates/caches-role-binding.yaml.tpl b/templates/helm/templates/caches-role-binding.yaml.tpl index 0df640e9..57b753f7 100644 --- a/templates/helm/templates/caches-role-binding.yaml.tpl +++ b/templates/helm/templates/caches-role-binding.yaml.tpl @@ -8,7 +8,7 @@ roleRef: name: ack-namespaces-cache-{{ .ControllerName }}-controller subjects: - kind: ServiceAccount - name: ack-{{ .ControllerName }}-controller + name: {{ IncludeTemplate "service-account.name" }} namespace: {{ "{{ .Release.Namespace }}" }} --- apiVersion: rbac.authorization.k8s.io/v1 @@ -22,5 +22,5 @@ roleRef: name: ack-configmaps-cache-{{ .ControllerName }}-controller subjects: - kind: ServiceAccount - name: ack-{{ .ControllerName }}-controller - namespace: {{ "{{ .Release.Namespace }}" }} \ No newline at end of file + name: {{ IncludeTemplate "service-account.name" }} + namespace: {{ "{{ .Release.Namespace }}" }}