Skip to content

fix(airflow): mirror dagsGitSync.ref into branch - #62

Open
ibrahim-l wants to merge 2 commits into
OKDP:mainfrom
kubotal:fix/airflow-gitsync-ref
Open

fix(airflow): mirror dagsGitSync.ref into branch#62
ibrahim-l wants to merge 2 commits into
OKDP:mainfrom
kubotal:fix/airflow-gitsync-ref

Conversation

@ibrahim-l

@ibrahim-l ibrahim-l commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Description

Without a branch key the Airflow chart default dags.gitSync.branch: v2-2-stable lands in the deprecated GIT_SYNC_BRANCH env, which git-sync v4 lets override GITSYNC_REF, so the sidecar fetches the wrong ref and the pods stay in Init:Error. The package now mirrors dagsGitSync.ref into branch when no branch is given.

Related Issue

Fixes #59

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Refactor / chore
  • Breaking change

How to Test

Deploy an Airflow Release with dagsGitSync.ref only: the git-sync init container must fetch that ref (env shows the same value in both variables) instead of failing on v2-2-stable. Setting branch explicitly on the same Release was verified to fix the sync on a live instance.

Checklist

  • I have tested my changes
  • Documentation updated if needed
  • If breaking change: migration path described above
  • I hereby declare this contribution to be licensed under the Apache License Version 2.0.
  • I hereby agree to grant TOSIT a copyright license to use my contributions.

Copilot AI lite review requested due to automatic review settings August 24, 2026 01:20
@ibrahim-l ibrahim-l self-assigned this Aug 24, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Airflow package to prevent the Airflow chart’s default dags.gitSync.branch from implicitly setting the deprecated GIT_SYNC_BRANCH env var (which can override GITSYNC_REF in git-sync v4). It does this by mirroring dagsGitSync.ref into dagsGitSync.branch when the user did not provide a branch, ensuring the chart default no longer “wins”.

Changes:

  • Bump Airflow package tag from 3.2.1-p04 to 3.2.1-p05.
  • When dagsGitSync.ref is provided and no branch is provided, set branch = ref before rendering dags.gitSync values.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread packages/services/airflow/airflow.yaml Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Airflow package: dagsGitSync.ref is ignored, the chart default branch wins

3 participants