
* 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
38 lines
1.3 KiB
YAML
38 lines
1.3 KiB
YAML
apiVersion: extensions/v1beta1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ .Release.Name }}-{{ .Values.controller.name}}
|
|
labels:
|
|
app: {{ .Release.Name }}-{{ .Values.controller.name}}
|
|
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
|
release: {{ .Release.Name }}
|
|
namespace: {{ .Release.Namespace }}
|
|
heritage: {{ .Release.Service }}
|
|
spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: {{ .Release.Name }}-{{ .Values.controller.name}}
|
|
release: {{ .Release.Name }}
|
|
{{- if .Values.controller.podAnnotations }}
|
|
annotations:
|
|
{{ toYaml .Values.controller.podAnnotations | indent 8}}{{- end }}
|
|
spec:
|
|
serviceAccountName: {{ .Values.controller.serviceAccount | quote }}
|
|
containers:
|
|
- name: controller
|
|
image: "{{ .Values.images.namespace }}/{{ .Values.images.controller }}:{{ .Values.images.tag }}"
|
|
command: [ "workflow-controller" ]
|
|
args:
|
|
- "--configmap"
|
|
- "{{ .Release.Name }}-{{ .Values.controller.name}}-configmap"
|
|
- "--loglevel"
|
|
- "{{ .Values.controller.logging.level }}"
|
|
- "--gloglevel"
|
|
- "{{ .Values.controller.logging.globallevel }}"
|
|
env:
|
|
- name: ARGO_NAMESPACE
|
|
valueFrom:
|
|
fieldRef:
|
|
apiVersion: v1
|
|
fieldPath: metadata.namespace
|