slmg commented on code in PR #30423:
URL: https://github.com/apache/airflow/pull/30423#discussion_r1155184822


##########
chart/templates/secrets/redis-secrets.yaml:
##########
@@ -22,6 +22,7 @@
 # when we need them. We will always deploy them defensively to make the 
executor
 # update path actually work.
 
+{{- if or (eq .Values.executor "CeleryExecutor") (eq .Values.executor 
"CeleryKubernetesExecutor") }}

Review Comment:
   I thought it would be more readable, wrap the entire file which would be 
more efficient (no further logic like password generation need to run) and more 
DRY, as I would need to repeat this condition twice if I were to merge it with 
the existing conditions.
   
   1. 
https://github.com/apache/airflow/blob/484a7d0ca07ce594861a5989ec3f939756de0389/chart/templates/secrets/redis-secrets.yaml#L29
   1. 
https://github.com/apache/airflow/blob/484a7d0ca07ce594861a5989ec3f939756de0389/chart/templates/secrets/redis-secrets.yaml#L53
   
   Happy to edit my code if you think otherwise though?



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to