Skip to content

Commit

Permalink
Merge pull request #3200 from cliveseldon/3168_sa_hardwired
Browse files Browse the repository at this point in the history
Allow leader election to use configurable seldon-manager service account
  • Loading branch information
ukclivecox authored May 17, 2021
2 parents 9fc261d + 4da80b2 commit 69942e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ roleRef:
name: seldon-leader-election-role
subjects:
- kind: ServiceAccount
name: seldon-manager
name: '{{ .Values.serviceAccount.name }}'
namespace: '{{ include "seldon.namespace" . }}'
{{- end }}
1 change: 1 addition & 0 deletions operator/helm/split_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ def helm_namespace_override():
if (
name == "seldon1-manager-rolebinding"
or name == "seldon1-manager-sas-rolebinding"
or name == "seldon-leader-election-rolebinding"
):
res["subjects"][0]["name"] = helm_value("serviceAccount.name")
res["subjects"][0]["namespace"] = helm_namespace_override()
Expand Down

0 comments on commit 69942e4

Please sign in to comment.