Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helm chart should set AIRFLOW_HOME from airflowHome #34839

Merged
merged 4 commits into from Nov 7, 2023

Conversation

dstandish
Copy link
Contributor

Currently if you change airflowHome from /opt/airflow to something else it doesn't totally work because the official image hardcodes the env var AIRFLOW_HOME. This should fix that.

Comment on lines 56 to 62
{{- if .Values.enableBuiltInSecretEnvVars.AIRFLOW__CORE__FERNET_KEY }}
- name: AIRFLOW__CORE__FERNET_KEY
valueFrom:
secretKeyRef:
name: {{ template "fernet_key_secret" . }}
key: fernet-key
{{- end }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You didn't mean to remove this, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

corrrrect sir my b

values={"airflowHome": exp_path},
show_only=["templates/webserver/webserver-deployment.yaml"],
)
assert {"name": "AIRFLOW_HOME", "value": exp_path} in jmespath.search(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be worth a test that the default is added as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good call

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 I second this

@eladkal eladkal added this to the Airflow Helm Chart 1.12.0 milestone Oct 27, 2023
@dstandish dstandish force-pushed the set-airflow-home-in-helm-chart branch from 372d650 to 7c70efe Compare November 7, 2023 20:37
@dstandish dstandish merged commit 71e0e6e into apache:main Nov 7, 2023
55 checks passed
@dstandish dstandish deleted the set-airflow-home-in-helm-chart branch November 7, 2023 21:07
romsharon98 pushed a commit to romsharon98/airflow that referenced this pull request Nov 10, 2023
@ephraimbuddy ephraimbuddy added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:helm-chart Airflow Helm Chart changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants