Closed emartgu closed 1 year ago
@emartgu I want to avoid the need to explicitly set an airflow.version
value, we can probably do something similar to what we did for logging.worker_log_server_port
replacing celery.worker_log_server_port
in airflow 2.2.0, and just include both configs.
This should suppress the warning logs, and future-proof us in case they remove the old one.
Checks
User-Community Airflow Helm Chart
.Motivation
Airflow config section
kubernetes
renamed tokubernetes_executor
in 2.5.0: https://airflow.apache.org/docs/apache-airflow/stable/release_notes.html#airflow-config-section-kubernetes-renamed-to-kubernetes-executor-26873This is causing warnings for now and might not work for later versions.
Implementation
Introducing an if statement to pick the correct env variable names based on Airflow version in this section: https://github.com/airflow-helm/charts/blob/2268f2416a580cbd3db2050160a29226913473ca/charts/airflow/templates/config/secret-config-envs.yaml#L182
Example (with introduced
airflow.version
value):Are you willing & able to help?