Repository navigation
Conversation
…' into fix/74850-worker-metadata-secret
Miretpl
left a comment
There was a problem hiding this comment.
Could you resolve conflicts?
|
Thanks for the reviews. While looking into the merge conflict, I checked how the updated Helm chart handles metadata database credentials on The shared That covers the original #74850 scenario with Kerberos disabled and makes this PR’s |
|
#72206 resolved the issue |
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?