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 }}
- "--namespaced"
{{- end }}
{{- if .Values.controller.scaling.workflowWorkers }}
{{- with .Values.controller.workflowWorkers }}
- "--workflow-workers"
- "{{ .Values.controller.scaling.workflowWorkers }}"
- {{ . | quote }}
{{- end }}
{{- if .Values.controller.scaling.podWorkers }}
{{- if .Values.controller.podWorkers }}
- "--pod-workers"
- "{{ .Values.controller.scaling.podWorkers }}"
- {{ . | quote }}
{{- end }}
env:
- name: ARGO_NAMESPACE

View file

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