fix: use with for cleaner syntax and un-nest controller worker values

This commit is contained in:
AntoineDao 2020-06-08 22:07:06 +01:00
parent cb9673b107
commit 68227d7fa3
2 changed files with 6 additions and 7 deletions

View file

@ -43,13 +43,13 @@ spec:
{{- if .Values.singleNamespace }} {{- if .Values.singleNamespace }}
- "--namespaced" - "--namespaced"
{{- end }} {{- end }}
{{- if .Values.controller.scaling.workflowWorkers }} {{- with .Values.controller.workflowWorkers }}
- "--workflow-workers" - "--workflow-workers"
- "{{ .Values.controller.scaling.workflowWorkers }}" - {{ . | quote }}
{{- end }} {{- end }}
{{- if .Values.controller.scaling.podWorkers }} {{- if .Values.controller.podWorkers }}
- "--pod-workers" - "--pod-workers"
- "{{ .Values.controller.scaling.podWorkers }}" - {{ . | quote }}
{{- end }} {{- end }}
env: env:
- name: ARGO_NAMESPACE - name: ARGO_NAMESPACE

View file

@ -57,9 +57,8 @@ controller:
# spec: # spec:
# ttlStrategy: # ttlStrategy:
# secondsAfterCompletion: 84600 # secondsAfterCompletion: 84600
scaling: {} # workflowWorkers: 32
# workflowWorkers: 32 # podWorkers: 32
# podWorkers: 32
telemetryConfig: telemetryConfig:
enabled: false enabled: false
path: /telemetry path: /telemetry