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

Create directories based on AIRFLOW_CONFIG path #35818

Merged
merged 3 commits into from
Nov 24, 2023

Conversation

Taragolis
Copy link
Contributor

Currently write_default_airflow_configuration_if_needed create Airflow Home directory, which should work in case if user doesn't redefine AIRFLOW_CONFIG environment variable.

This PR focus to create directories to AIRFLOW_CONFIG but only in case if path relative to AIRFLOW_HOME otherwise it will raise an error, e.g. airflow home = /opt/airflow/ and airflow_config refers to /root/config/foo.cfg

Also check that AIRFLOW_CONFIG is not a directory, e.g. avoid situation miss configuration to "${AIRFLOW_CONFIG}/config/"


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@vincbeck vincbeck merged commit cc042a2 into apache:main Nov 24, 2023
47 checks passed
@eladkal eladkal added this to the Airflow 2.8.0 milestone Nov 24, 2023
@potiuk
Copy link
Member

potiuk commented Nov 24, 2023

Nice!

@Taragolis Taragolis deleted the custom-config-path-directory-creation branch November 24, 2023 18:28
@ephraimbuddy ephraimbuddy added the type:improvement Changelog: Improvements label Nov 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:improvement Changelog: Improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants