
* Chart Grooming - Changed the default `workflow-controller` installation to use the `ServiceAccount` that is created and bound. - Customized the instanceID logic: - No longer defaults to installed (this was very difficult to see/understand when coming from starter tutorials) - Kept logic to allow for release name or explicit mappings but changed structure a bit - Added in optional configuration for: - CRD Install hook's ServiceAccount to allow clean install if your default roles aren't privledged - Optional Pod and Service annotations - Controller logging level configuration - Minio Customizations - Changed the Secret configuration to properly represent the path of a secret instead of the actual contents - Changed the names of the secret and service that are represented to mirror that of the underlying chart * Adding in role bindings for minio secrets if installed
25 lines
No EOL
802 B
YAML
25 lines
No EOL
802 B
YAML
{{ if .Values.minio.install }}
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: RoleBinding
|
|
metadata:
|
|
name: {{ .Release.Name }}-{{ .Values.controller.name}}-minio-binding
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: Role
|
|
name: {{ .Release.Name }}-{{ .Values.controller.name}}-minio-secret
|
|
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 }}
|
|
{{- end }} |