Skip to content

Conversation

@kaxil
Copy link
Member

@kaxil kaxil commented May 1, 2021

This commit adds the following things:

  • Add "airflowVersion" flag that will allow use to add some components
    that are just available or work with certain Airflow version.
    Example: pod_template_file is available for Airflow >= 1.10.12
  • Update logic for selecting pre/post Airflow 2.0 CLI commands based
    on that flag
  • Updates stragtegy of Airflow Webserver based on that flag as the
    webserver in Airflow >= 2 does not need access to DAG files, hence
    we don't need to recreate but can have a "true" rollingUpdate
  • Allow overriding webserver udpate strategy

^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, 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 UPDATING.md.

@boring-cyborg boring-cyborg bot added the area:helm-chart Airflow Helm Chart label May 1, 2021
@kaxil kaxil force-pushed the add-airflow-version branch from 1902733 to 7059e92 Compare May 5, 2021 00:01
@kaxil kaxil marked this pull request as ready for review May 5, 2021 00:02
@kaxil kaxil requested review from ashb and dimberman as code owners May 5, 2021 00:02
@kaxil kaxil force-pushed the add-airflow-version branch 2 times, most recently from 804e254 to 70f3d19 Compare May 5, 2021 15:07
@github-actions github-actions bot added the okay to merge It's ok to merge this PR as it does not require more tests label May 6, 2021
@github-actions
Copy link

github-actions bot commented May 6, 2021

The PR is likely OK to be merged with just subset of tests for default Python and Database versions without running the full matrix of tests, because it does not modify the core of Airflow. If the committers decide that the full tests matrix is needed, they will add the label 'full tests needed'. Then you should rebase to the latest master or amend the last commit of the PR, and push it with --force-with-lease.

This commit adds the following things:

- Add "airflowVersion" flag that will allow use to add some components
	that are just available or work with certain Airflow version.
	Example: pod_template_file is available for Airflow >= 1.10.12
- Update logic for selecting pre/post Airflow 2.0 CLI commands based
	on that flag
- Updates stragtegy of Airflow Webserver based on that flag as the
	webserver in Airflow >= 2 does not need access to DAG files, hence
	we don't need to recreate but can have a "true" rollingUpdate
- Allow overriding webserver udpate strategy
@kaxil kaxil force-pushed the add-airflow-version branch 2 times, most recently from 5898987 to a8610a5 Compare May 6, 2021 12:05
@kaxil kaxil closed this May 6, 2021
@kaxil kaxil reopened this May 6, 2021
@kaxil kaxil closed this May 6, 2021
@kaxil kaxil reopened this May 6, 2021
@github-actions
Copy link

github-actions bot commented May 6, 2021

The Workflow run is cancelling this PR. Building images for the PR has failed. Follow the workflow link to check the reason.

@kaxil kaxil closed this May 6, 2021
@kaxil kaxil reopened this May 6, 2021
@kaxil kaxil merged commit 3cfcd23 into apache:master May 6, 2021
@kaxil kaxil deleted the add-airflow-version branch May 6, 2021 14:10
kaxil added a commit to astronomer/airflow that referenced this pull request May 13, 2021
For `apache-airflow>=2.0.0`, DAG Serialization is enabled by default
and we don't need to have a sidecar on Websserver.

Previously this was done using `gitSync.excludeWebserver`. However
with apache#15627 - we now have
`airflowVerson` so we can just do a comparison of the version.
kaxil added a commit that referenced this pull request May 13, 2021
For `apache-airflow>=2.0.0`, DAG Serialization is enabled by default
and we don't need to have a sidecar on Websserver.

Previously this was done using `gitSync.excludeWebserver`. However
with #15627 - we now have
`airflowVerson` so we can just do a comparison of the version.
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Sep 17, 2021
For `apache-airflow>=2.0.0`, DAG Serialization is enabled by default
and we don't need to have a sidecar on Websserver.

Previously this was done using `gitSync.excludeWebserver`. However
with apache/airflow#15627 - we now have
`airflowVerson` so we can just do a comparison of the version.

GitOrigin-RevId: caddbf3aa04096033502d7da7eafaf830737a9b9
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Sep 23, 2021
For `apache-airflow>=2.0.0`, DAG Serialization is enabled by default
and we don't need to have a sidecar on Websserver.

Previously this was done using `gitSync.excludeWebserver`. However
with apache/airflow#15627 - we now have
`airflowVerson` so we can just do a comparison of the version.

GitOrigin-RevId: caddbf3aa04096033502d7da7eafaf830737a9b9
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Nov 27, 2021
For `apache-airflow>=2.0.0`, DAG Serialization is enabled by default
and we don't need to have a sidecar on Websserver.

Previously this was done using `gitSync.excludeWebserver`. However
with apache/airflow#15627 - we now have
`airflowVerson` so we can just do a comparison of the version.

GitOrigin-RevId: caddbf3aa04096033502d7da7eafaf830737a9b9
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Mar 10, 2022
For `apache-airflow>=2.0.0`, DAG Serialization is enabled by default
and we don't need to have a sidecar on Websserver.

Previously this was done using `gitSync.excludeWebserver`. However
with apache/airflow#15627 - we now have
`airflowVerson` so we can just do a comparison of the version.

GitOrigin-RevId: caddbf3aa04096033502d7da7eafaf830737a9b9
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Jun 4, 2022
For `apache-airflow>=2.0.0`, DAG Serialization is enabled by default
and we don't need to have a sidecar on Websserver.

Previously this was done using `gitSync.excludeWebserver`. However
with apache/airflow#15627 - we now have
`airflowVerson` so we can just do a comparison of the version.

GitOrigin-RevId: caddbf3aa04096033502d7da7eafaf830737a9b9
kosteev pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Jul 9, 2022
For `apache-airflow>=2.0.0`, DAG Serialization is enabled by default
and we don't need to have a sidecar on Websserver.

Previously this was done using `gitSync.excludeWebserver`. However
with apache/airflow#15627 - we now have
`airflowVerson` so we can just do a comparison of the version.

GitOrigin-RevId: caddbf3aa04096033502d7da7eafaf830737a9b9
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Aug 27, 2022
For `apache-airflow>=2.0.0`, DAG Serialization is enabled by default
and we don't need to have a sidecar on Websserver.

Previously this was done using `gitSync.excludeWebserver`. However
with apache/airflow#15627 - we now have
`airflowVerson` so we can just do a comparison of the version.

GitOrigin-RevId: caddbf3aa04096033502d7da7eafaf830737a9b9
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Oct 4, 2022
For `apache-airflow>=2.0.0`, DAG Serialization is enabled by default
and we don't need to have a sidecar on Websserver.

Previously this was done using `gitSync.excludeWebserver`. However
with apache/airflow#15627 - we now have
`airflowVerson` so we can just do a comparison of the version.

GitOrigin-RevId: caddbf3aa04096033502d7da7eafaf830737a9b9
aglipska pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Oct 7, 2022
For `apache-airflow>=2.0.0`, DAG Serialization is enabled by default
and we don't need to have a sidecar on Websserver.

Previously this was done using `gitSync.excludeWebserver`. However
with apache/airflow#15627 - we now have
`airflowVerson` so we can just do a comparison of the version.

GitOrigin-RevId: caddbf3aa04096033502d7da7eafaf830737a9b9
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Dec 7, 2022
For `apache-airflow>=2.0.0`, DAG Serialization is enabled by default
and we don't need to have a sidecar on Websserver.

Previously this was done using `gitSync.excludeWebserver`. However
with apache/airflow#15627 - we now have
`airflowVerson` so we can just do a comparison of the version.

GitOrigin-RevId: caddbf3aa04096033502d7da7eafaf830737a9b9
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Jan 27, 2023
For `apache-airflow>=2.0.0`, DAG Serialization is enabled by default
and we don't need to have a sidecar on Websserver.

Previously this was done using `gitSync.excludeWebserver`. However
with apache/airflow#15627 - we now have
`airflowVerson` so we can just do a comparison of the version.

GitOrigin-RevId: caddbf3aa04096033502d7da7eafaf830737a9b9
kosteev pushed a commit to kosteev/composer-airflow-test-copybara that referenced this pull request Sep 12, 2024
For `apache-airflow>=2.0.0`, DAG Serialization is enabled by default
and we don't need to have a sidecar on Websserver.

Previously this was done using `gitSync.excludeWebserver`. However
with apache/airflow#15627 - we now have
`airflowVerson` so we can just do a comparison of the version.

GitOrigin-RevId: caddbf3aa04096033502d7da7eafaf830737a9b9
kosteev pushed a commit to kosteev/composer-airflow-test-copybara that referenced this pull request Sep 13, 2024
For `apache-airflow>=2.0.0`, DAG Serialization is enabled by default
and we don't need to have a sidecar on Websserver.

Previously this was done using `gitSync.excludeWebserver`. However
with apache/airflow#15627 - we now have
`airflowVerson` so we can just do a comparison of the version.

GitOrigin-RevId: caddbf3aa04096033502d7da7eafaf830737a9b9
kosteev pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Sep 17, 2024
For `apache-airflow>=2.0.0`, DAG Serialization is enabled by default
and we don't need to have a sidecar on Websserver.

Previously this was done using `gitSync.excludeWebserver`. However
with apache/airflow#15627 - we now have
`airflowVerson` so we can just do a comparison of the version.

GitOrigin-RevId: caddbf3aa04096033502d7da7eafaf830737a9b9
kosteev pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Nov 7, 2024
For `apache-airflow>=2.0.0`, DAG Serialization is enabled by default
and we don't need to have a sidecar on Websserver.

Previously this was done using `gitSync.excludeWebserver`. However
with apache/airflow#15627 - we now have
`airflowVerson` so we can just do a comparison of the version.

GitOrigin-RevId: caddbf3aa04096033502d7da7eafaf830737a9b9
kosteev pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request May 1, 2025
For `apache-airflow>=2.0.0`, DAG Serialization is enabled by default
and we don't need to have a sidecar on Websserver.

Previously this was done using `gitSync.excludeWebserver`. However
with apache/airflow#15627 - we now have
`airflowVerson` so we can just do a comparison of the version.

GitOrigin-RevId: caddbf3aa04096033502d7da7eafaf830737a9b9
kosteev pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request May 22, 2025
For `apache-airflow>=2.0.0`, DAG Serialization is enabled by default
and we don't need to have a sidecar on Websserver.

Previously this was done using `gitSync.excludeWebserver`. However
with apache/airflow#15627 - we now have
`airflowVerson` so we can just do a comparison of the version.

GitOrigin-RevId: caddbf3aa04096033502d7da7eafaf830737a9b9
kosteev pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Sep 17, 2025
For `apache-airflow>=2.0.0`, DAG Serialization is enabled by default
and we don't need to have a sidecar on Websserver.

Previously this was done using `gitSync.excludeWebserver`. However
with apache/airflow#15627 - we now have
`airflowVerson` so we can just do a comparison of the version.

GitOrigin-RevId: caddbf3aa04096033502d7da7eafaf830737a9b9
kosteev pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Oct 16, 2025
For `apache-airflow>=2.0.0`, DAG Serialization is enabled by default
and we don't need to have a sidecar on Websserver.

Previously this was done using `gitSync.excludeWebserver`. However
with apache/airflow#15627 - we now have
`airflowVerson` so we can just do a comparison of the version.

GitOrigin-RevId: caddbf3aa04096033502d7da7eafaf830737a9b9
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 okay to merge It's ok to merge this PR as it does not require more tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants