Make use of RBAC configurable

This commit is contained in:
James Munnelly
2018-01-07 17:23:07 +00:00
parent 90a9a9e7bf
commit 51d70a184c
3 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ spec:
app: {{ template "name" . }}
release: {{ .Release.Name }}
spec:
serviceAccountName: "{{ template "fullname" . }}"
serviceAccountName: {{ if .Values.rbac.create }}{{ template "fullname" . }}{{ else }}{{ .Values.rbac.serviceAccountName | quote }}{{ end }}
hostname: "{{ template "fullname" . }}"
initContainers:
- name: kube-plex-install
+2
View File
@@ -1,3 +1,4 @@
{{- if .Values.rbac.create -}}
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
@@ -48,3 +49,4 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ template "fullname" . }}
{{- end }}
+6
View File
@@ -31,6 +31,12 @@ ingress:
# hosts:
# - chart-example.local
rbac:
create: true
# Specify create: false and serviceAccountName to manually manage the service
# account for this deployment
## serviceAccountName: ""
persistence:
transcode:
# Optionally specify claimName to manually override the PVC to be used for