YC: make rbac optional and allow custom docker registry
This commit is contained in:
parent
2933f33597
commit
6812bacb7b
4 changed files with 10 additions and 1 deletions
|
@ -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 }}
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
{{- if .Values.controller.createServiceAccount }}
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: {{ .Values.controller.serviceAccount }}
|
||||
{{- end }}
|
||||
|
|
Loading…
Reference in a new issue