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 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole kind: ClusterRole
metadata: metadata:
@ -78,4 +79,4 @@ rules:
verbs: verbs:
- get - get
- list - list
{{- end }}

View file

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

View file

@ -36,7 +36,11 @@ spec:
- "--configmap" - "--configmap"
- "{{ .Release.Name }}-{{ .Values.controller.name}}-configmap" - "{{ .Release.Name }}-{{ .Values.controller.name}}-configmap"
- "--executor-image" - "--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 }}" - "{{ .Values.images.namespace }}/{{ .Values.images.executor }}:{{ default .Values.images.tag .Values.executor.image.tag }}"
{{- end }}
- "--loglevel" - "--loglevel"
- "{{ .Values.controller.logging.level }}" - "{{ .Values.controller.logging.level }}"
- "--gloglevel" - "--gloglevel"

View file

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