Skip to content

Add Git-Sync to GitDagBundle migration guide for the Helm chart - #73082

Merged
Miretpl merged 4 commits into
apache:mainfrom
developer-rpai:docs/gitsync-to-gitdagbundle-migration
Nov 3, 2026
Merged

Miretpl merged 4 commits into
apache:mainfrom
developer-rpai:docs/gitsync-to-gitdagbundle-migration

Conversation

@developer-rpai

Copy link
Copy Markdown
Contributor

Adds a migration guide for Helm chart users moving from the Git-Sync sidecar (dags.gitSync) to the Airflow-native GitDagBundle, as requested in #42918.

The guide covers:

  • What is changing: sync moves into the Dag Processor, no sidecar containers or shared ReadWriteMany volume needed.
  • A value-mapping table: every dags.gitSync.* key to its dagProcessor.dagBundleConfigList[].kwargs equivalent (repo -> repo_url, branch/ref/rev -> tracking_ref, subPath -> subdir, period -> refresh_interval, credentialsSecret -> git_conn_id, SSH secrets -> connection extras), with keys that have no equivalent explicitly marked.
  • Auth patterns for public repos, private HTTPS repos (via AIRFLOW_CONN_* from extraSecrets), and SSH key pointers.
  • A 4-step migration (translate values, disable dags.gitSync/dags.persistence, helm upgrade, verify), a multi-repo example, and the SHA-pinning restart caveat.

Accuracy was checked against the provider source (GitDagBundle kwargs, hook auth semantics) and the chart's values.yaml/_helpers.yaml on main. Git-Sync removal is framed as planned for Chart 2.0, not already done.

The Git-Sync sidecar (dags.gitSync) is planned for removal in Helm
Chart 2.0 in favour of the Airflow-native GitDagBundle. This adds a
chart docs page mapping the old dags.gitSync values to their
dagProcessor.dagBundleConfigList equivalents, with authentication
patterns and a step-by-step migration.
@boring-cyborg

boring-cyborg Bot commented Sep 13, 2026

Copy link
Copy Markdown

Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contributors' Guide
Here are some useful points:

  • Pay attention to the quality of your code (ruff, mypy and type annotations). Our prek-hooks will help you with that.
  • In case of a new feature add useful documentation (in docstrings or in docs/ directory). Adding a new operator? Check this short guide Consider adding an example Dag that shows how users should use it.
  • Consider using Breeze environment for testing locally, it's a heavy docker but it ships with a working Airflow and a lot of integrations.
  • Be patient and persistent. It might take some time to get a review or get the final approval from Committers.
  • Please follow ASF Code of Conduct for all communication including (but not limited to) comments on Pull Requests, Mailing list and Slack.
  • Be sure to read the Airflow Coding style.
  • Always keep your Pull Requests rebased, otherwise your build might fail due to changes not related to your commits.
    Apache Airflow is a community-driven project and together we are making it better 🚀.
    In case of doubts contact the developers at:
    Mailing List: [email protected]
    Slack: https://s.apache.org/airflow-slack

@shahar1 shahar1 added the area:dag-bundles AIP-66 label Sep 13, 2026
Veyu noted Git-Sync could checkout any commit via rev/ref params, so the statement that it always checked out the latest commit was not accurate. Removed that sentence per the preferred fix, keeping the GitDagBundle versioning note.
@Miretpl
Miretpl requested a review from veyu September 24, 2026 20:00
@Miretpl Miretpl added the backport-to-chart/v1-2x-test Automatic backport to chart 1.2x maintenance branch label Sep 24, 2026
@Miretpl Miretpl added this to the Airflow Helm Chart 1.23.0 milestone Sep 24, 2026
…uide

- Fix spellcheck: favour -> favor (en_US)
- Generalize Git-Sync sidecar description (persistence-setting dependent)
- Prereq: latest Helm Chart 1.x release with Airflow 3
- credentialsSecret row lists both GITSYNC_* and GIT_SYNC_* key names
- Clarify what kwargs.git_conn_id refers to
- Note the Airflow Connection UI/CLI alternative to extraSecrets/extraEnv
@developer-rpai

Copy link
Copy Markdown
Contributor Author

Hi Miretpl, a heads-up that the September 25 revision addresses each of your five review comments: the shared DAG folder wording in What is changing, the Helm Chart 1.x prerequisite bullet, the credentialsSecret env var list in the mapping table, the clarification of what kwargs.git_conn_id refers to, and a new paragraph noting the git connection can also be created directly in the Airflow UI or with airflow connections add. Would you mind taking another look when you get a chance?

@Miretpl
Miretpl enabled auto-merge (squash) November 3, 2026 18:30
@Miretpl
Miretpl merged commit d3e29e1 into apache:main Nov 3, 2026
98 checks passed
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Backport successfully created: chart/v1-2x-test

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
✅ chart/v1-2x-test PR Link

@developer-rpai

Copy link
Copy Markdown
Contributor Author

Thanks Miretpl, appreciate the review and the merge. Happy to help with any follow-up.

shahar1 pushed a commit that referenced this pull request Nov 6, 2026
…he Helm chart (#73082) (#76392)

* Add migration guide from Git-Sync sidecar to GitDagBundle

The Git-Sync sidecar (dags.gitSync) is planned for removal in Helm
Chart 2.0 in favour of the Airflow-native GitDagBundle. This adds a
chart docs page mapping the old dags.gitSync values to their
dagProcessor.dagBundleConfigList equivalents, with authentication
patterns and a step-by-step migration.

* Address reviewer feedback: remove inaccurate Git-Sync claim

Veyu noted Git-Sync could checkout any commit via rev/ref params, so the statement that it always checked out the latest commit was not accurate. Removed that sentence per the preferred fix, keeping the GitDagBundle versioning note.

* docs: address review feedback on Git-Sync to GitDagBundle migration guide

- Fix spellcheck: favour -> favor (en_US)
- Generalize Git-Sync sidecar description (persistence-setting dependent)
- Prereq: latest Helm Chart 1.x release with Airflow 3
- credentialsSecret row lists both GITSYNC_* and GIT_SYNC_* key names
- Clarify what kwargs.git_conn_id refers to
- Note the Airflow Connection UI/CLI alternative to extraSecrets/extraEnv

---------
(cherry picked from commit d3e29e1)

Co-authored-by: Rakesh Pai <[email protected]>
Co-authored-by: Przemysław Mirowski <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dag-bundles AIP-66 area:helm-chart Airflow Helm Chart backport-to-chart/v1-2x-test Automatic backport to chart 1.2x maintenance branch kind:documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants