* moved workflow CRD into helpers.tpl * added new values to values.yaml * added UI cluster role and binding * add workflow controller cluster role and binding * added ui service account creator * added workflow controller service account yaml * reformatted values.yaml to group similar items * tweaked files to reflect values.yaml changes * setup minio stuff to match subchart model * changes to reflect minio rework * added README to explain chart a bit * changes made to reflect minio values changes * changes to reflect minio values changes (again) * updating minio to latest version * move the crd definition into it's own tpl file
23 lines
769 B
YAML
23 lines
769 B
YAML
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRoleBinding
|
|
metadata:
|
|
name: {{ .Release.name }}-{{ .Values.controller.name}}-binding
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: ClusterRole
|
|
name: {{ .Release.name }}-{{ .Values.controller.name}}-cluster-role
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: {{ .Values.controller.serviceAccount }}
|
|
namespace: {{ .Release.Namespace }}
|
|
{{- if .Values.controller.workflowNamespaces }}
|
|
{{- $uiServiceAccount := .Values.controller.serviceAccount }}
|
|
{{- $namespace := .Release.Namespace }}
|
|
{{- range $key := .Values.controller.workflowNamespaces }}
|
|
{{- if not (eq $key $namespace) }}
|
|
- kind: ServiceAccount
|
|
name: {{ $uiServiceAccount }}
|
|
namespace: {{ $key }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|