YuDorogov edited a comment on pull request #15428: URL: https://github.com/apache/airflow/pull/15428#issuecomment-824512356
If i use git-sync sidecar container with keda autoscaler, git-sync will be [0] in containers array, and not contain connection env's, then KEDA could not get [AIRFLOW_CONN_AIRFLOW_DB](https://github.com/apache/airflow/blob/508cd394bcf8dc1bada8824d52ebff7bb6c86b3b/chart/templates/workers/worker-kedaautoscaler.yaml#L47) variable from git-sync sidecar in worker deployment(git-sync not contain it). Resolution: the [worker container](https://github.com/apache/airflow/blob/508cd394bcf8dc1bada8824d52ebff7bb6c86b3b/chart/templates/workers/worker-deployment.yaml#L125) must always be [0] in the container array, because it contain all connection env's -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
