Repository navigation
Conversation
anzinmhd
requested review from
Miretpl,
bugraoz93,
hussein-awala,
jedcunningham and
jscheffl
as code owners
October 17, 2026 07:09
1 task done
…' into fix/74850-worker-metadata-secret
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Remove the chart-generated
AIRFLOW__DATABASE__SQL_ALCHEMY_CONNandAIRFLOW_CONN_AIRFLOW_DBvariables from KubernetesExecutor task containers so tasks can start without a metadata database Secret in their namespace.The shared environment helper accepts an internal
ExcludeDatabaseflag. The taskbasecontainer always enables it. Theworker-kerberosnative sidecar enables it whenairflowVersion >= 3.4.0, relying on the Kerberos CLI startup fix in #75000. Older Airflow versions retain the database references because their CLI still performs mandatory database checks. Other helper callers retain their existing behavior.Closes #74850.
Reproduction
KubernetesExecutorandmultiNamespaceMode: true, with Kerberos disabled.pod_override.metadata.namespace, omitting the metadata database Secret from that namespace.CreateContainerConfigErrorreporting the missing Secret.After the fix, a fresh task can start without the metadata Secret in its namespace.
Verification
basecontainer omits both database variables and that theworker-kerberossidecar retains them on Airflow 3.2.2 and 3.3.2, but omits them on 3.4.0.maintemplate update. The revised targeted Helm test has not yet been rerun locally; Breeze could not resolveflit-corebecause PyPI was unreachable.A previous Kubernetes smoke test used a 3.4.0 development image with a stub
kinitand confirmed that the Kerberos CLI reached ticket initialization without database environment variables. It did not test real KDC authentication or an Airflow task using Kerberos.Was generative AI tooling used to co-author this PR?