Allow git-sync env vars to be overridden via values and loaded from Secrets#65791
Allow git-sync env vars to be overridden via values and loaded from Secrets#65791sokratis1988 wants to merge 0 commit into
Conversation
|
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
|
|
Why would you want to override the ENV if there are specific helper template entries in the chart? Note that the full git sync mechanism will be dropped probably soon (plans will be dropped to devlist the next days). So as maintainer the motivation to add more complexity to a future legacy is a bit low. |
In my case, I retrieve the configuration for GitSync via Azure Key Vault and install the Helm chart via FluxCD – so I have an |
Plan is to fully switch to Dag Bundles in the configuration. |
|
@sokratis1988 A few things need addressing before review — see our Pull Request quality criteria. Issues found:
What to do next:
There is no rush — take your time and work at your own pace. We appreciate your contribution and are happy to wait for updates. If you have questions, feel free to ask on the Airflow Slack. Note: This comment was drafted by an AI-assisted triage tool and may contain mistakes. Once you have addressed the points above, an Apache Airflow maintainer — a real person — will take the next look at your PR. We use this two-stage triage process so that our maintainers' limited time is spent where it matters most: the conversation with you. |
|
@sokratis1988 A few things need addressing before review — see our Pull Request quality criteria.
No rush. Note: This comment was drafted by an AI-assisted triage tool and may contain mistakes. Once you have addressed the points above, an Apache Airflow maintainer — a real person — will take the next look at your PR. We use this two-stage triage process so that our maintainers' limited time is spent where it matters most: the conversation with you. Drafted-by: Claude Code (Opus 4.7); reviewed by @potiuk before posting |
Currently, git-sync environment variables (GIT_SYNC_REPO, GIT_SYNC_REV, GIT_SYNC_BRANCH, GITSYNC_REF, etc.) are hardcoded in the
git_sync_containerhelper template and read from values.yaml. If a user tries to override them viadags.gitSync.env, the container ends up with duplicate entries for the same variable name.This PR:
git_sync_env_not_overriddenhelper that skips the hardcodeddefault when the same variable is provided in
dags.gitSync.env,preventing duplicates.
dags.gitSync.envVarsSecretto load configurable git-syncvariables from a Kubernetes Secret via
secretKeyRef(withoptional: true), following the same pattern ascredentialsSecretfor
GIT_SYNC_USERNAME/GIT_SYNC_PASSWORD.values.schema.jsonaccordingly.Was generative AI tooling used to co-author this PR?
Generated-by: [Tool Name] following the guidelines
{pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.