kaxil commented on a change in pull request #15477:
URL: https://github.com/apache/airflow/pull/15477#discussion_r617960462
##########
File path: chart/templates/workers/worker-deployment.yaml
##########
@@ -46,8 +46,13 @@ spec:
tier: airflow
component: worker
release: {{ .Release.Name }}
- {{ if .Values.workers.updateStrategy }}
-{{ toYaml .Values.workers.updateStrategy | indent 2 }}
+ {{ if and $persistence .Values.workers.updateStrategy }}
+ updateStrategy:
+ {{- toYaml .Values.workers.updateStrategy | nindent 4 }}
+ {{- end }}
+ {{ if and (not $persistence) (.Values.workers.strategy) }}
+ strategy:
+ {{- toYaml .Values.workers.strategy | nindent 4 }}
Review comment:
Just want to indent with a new line, without it I would need to have
following:
```yaml
strategy:
{{ toYaml .Values.workers.strategy | nindent 4 }}
```
I prefer (1) as it makes it clear the values are subkeys to strategy: key
(just more readable to me)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]