YC: make rbac optional and allow custom docker registry

This commit is contained in:
Muwon Lum 2020-04-23 00:50:59 -07:00
parent 2933f33597
commit 6812bacb7b
4 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,4 @@
{{- if .Values.controller.createServiceAccount }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
@ -78,4 +79,4 @@ rules:
verbs:
- get
- list
{{- end }}

View file

@ -1,3 +1,4 @@
{{- if .Values.controller.createServiceAccount }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
@ -21,3 +22,4 @@ subjects:
{{- end }}
{{- end }}
{{- end }}
{{- end }}

View file

@ -36,7 +36,11 @@ spec:
- "--configmap"
- "{{ .Release.Name }}-{{ .Values.controller.name}}-configmap"
- "--executor-image"
{{- if .Values.executor.image.tag }}
- "{{ .Values.executor.image.name }}:{{ .Values.executor.image.tag }}"
{{- else }}
- "{{ .Values.images.namespace }}/{{ .Values.images.executor }}:{{ default .Values.images.tag .Values.executor.image.tag }}"
{{- end }}
- "--loglevel"
- "{{ .Values.controller.logging.level }}"
- "--gloglevel"

View file

@ -1,4 +1,6 @@
{{- if .Values.controller.createServiceAccount }}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ .Values.controller.serviceAccount }}
{{- end }}