Open dindurthy opened 2 months ago
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
It could be that in a sync context, e.g. ArgoCD or Flux, waitForMigrations.enabled
doesn't matter, in which case a documentation update might be sufficient
Apache Airflow version
2.10.0
If "Other Airflow 2 version" selected, which one?
2.10.1
What happened?
I see related issues but not specifically the one I'm about to describe.
We are using the helm chart v1.15.0 which enables extraInitContainers for the migrateDatabaseJob.
By default, the webserver, workers, triggerer, scheduler set
waitForMigrations.enabled: true
in the chart, which kinda makes sense. However, that will not work if thewait-for-airflow-migrations
itself depends on an initContainer. In our case, which expect is a semi-common one, database connections for GKE workloads connecting to private CloudSQL instances rely on the cloud-sql-proxy initContainer. BecauseextraInitContainers
injects those containers after thewait-for-airflow-migrations
and because the kubelet will run initContainers in their order regardless of a latter one being a sidecar.What you think should happen instead?
For this to work, we would need extraInitContainers to come first (perhaps a breaking change) or have some general control of the order including the wait container.
How to reproduce
Set up an airflow database that requires the an init container to connect. With
waitForMigration.enabled: true
, airflow pods will be stuck in Pending.Operating System
ubuntu
Versions of Apache Airflow Providers
N/A
Deployment
Official Apache Airflow Helm Chart
Deployment details
k8s v1.29.0
Anything else?
No response
Are you willing to submit PR?
Code of Conduct