Skip to content

Commit

Permalink
Add missing rbac to helm flag to allow create
Browse files Browse the repository at this point in the history
  • Loading branch information
ukclivecox committed Jun 19, 2020
1 parent f890e8b commit d8fff2c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.rbac.create }}
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
Expand Down Expand Up @@ -35,3 +36,4 @@ rules:
- events
verbs:
- create
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.rbac.create }}
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
Expand All @@ -16,3 +17,4 @@ subjects:
- kind: ServiceAccount
name: seldon-manager
namespace: '{{ .Release.Namespace }}'
{{- end }}
9 changes: 9 additions & 0 deletions operator/helm/split_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,15 @@ def helm_release(value: str):
+ HELM_IF_END
+ HELM_IF_END
)
elif (
name == "seldon-leader-election-rolebinding"
or name == "seldon-leader-election-role"
):
fdata = (
HELM_RBAC_IF_START
+ fdata
+ HELM_IF_END
)
elif name == "seldon-manager" and kind == "serviceaccount":
fdata = HELM_SA_IF_START + fdata + HELM_IF_END
elif kind == "issuer" or kind == "certificate":
Expand Down

0 comments on commit d8fff2c

Please sign in to comment.