Skip to content

Commit 26e1317

Browse files
(fix) enable custom names for service accounts (#468)
Issue N/A Allow leaderElection role to be bound to a custom `ServiceAccount` name, similarily to the main cluster role. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 2fce204 commit 26e1317

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/helm/templates/leader-election-role-binding.yaml.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ roleRef:
1414
name: {{.ServicePackageName}}-leader-election-role
1515
subjects:
1616
- kind: ServiceAccount
17-
name: {{.ServiceAccountName}}
17+
name: {{ "{{ include \"service-account.name\" . }}" }}
1818
namespace: {{ "{{ .Release.Namespace }}" }}
1919
{{- "{{- end }}" }}

0 commit comments

Comments
 (0)