You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Title: airflow.variables and extraEnv not applied in env and envFrom sections from values.yaml
Description:
According to the documentation, it should be possible to define environment variables and other settings in the values.yaml file through the airflow.variables and airflow.extraEnv fields. However, these fields do not seem to be used or referenced within the Helm templates under the env and envFrom sections for Airflow pods.
These settings should then be applied under the env and envFrom sections of the Airflow deployment templates.
Actual Behavior:
Currently, the fields airflow.variables and airflow.extraEnv are not referenced or applied in the env or envFrom sections of the webserver, scheduler, or worker pods.
Steps to Reproduce:
Define variables and extra environment settings in values.yaml as follows:
Check the environment variables in the Airflow pods:
kubectl describe pod <pod-name>
The expected variables (VAR_TEST_KEY and CUSTOM_VAR) will not be present in the pod's environment.
Proposed Solution:
Update the Helm chart templates to properly reference and apply airflow.variables and airflow.extraEnv fields in the env and envFrom sections. This will ensure that variables and extra environment configurations specified in values.yaml are correctly injected into the Airflow pods.
For example, the webserver deployment template could be updated as follows:
Checks
User-Community Airflow Helm Chart
.Chart Version
8.9.0
Kubernetes Version
Helm Version
Description
Title:
airflow.variables
andextraEnv
not applied inenv
andenvFrom
sections fromvalues.yaml
Description:
According to the documentation, it should be possible to define environment variables and other settings in the
values.yaml
file through theairflow.variables
andairflow.extraEnv
fields. However, these fields do not seem to be used or referenced within the Helm templates under theenv
andenvFrom
sections for Airflow pods.For example, in
values.yaml
:Expected Behavior:
airflow.variables
should be loaded as environment variables in the pods.airflow.extraEnv
field should allow the user to specify extra environment variables usingConfigMapKeySelector
orSecretKeySelector
.For example:
These settings should then be applied under the
env
andenvFrom
sections of the Airflow deployment templates.Actual Behavior:
Currently, the fields
airflow.variables
andairflow.extraEnv
are not referenced or applied in theenv
orenvFrom
sections of the webserver, scheduler, or worker pods.Steps to Reproduce:
values.yaml
as follows:The expected variables (
VAR_TEST_KEY
andCUSTOM_VAR
) will not be present in the pod's environment.Proposed Solution:
Update the Helm chart templates to properly reference and apply
airflow.variables
andairflow.extraEnv
fields in theenv
andenvFrom
sections. This will ensure that variables and extra environment configurations specified invalues.yaml
are correctly injected into the Airflow pods.For example, the webserver deployment template could be updated as follows:
This will allow for the proper inclusion of environment variables defined in
airflow.variables
andextraEnv
.Relevant Logs
Custom Helm Values
The text was updated successfully, but these errors were encountered: