-
Notifications
You must be signed in to change notification settings - Fork 13.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kubernetes worker pod doesn't use docker container entrypoint #12766
Kubernetes worker pod doesn't use docker container entrypoint #12766
Conversation
3c951ec
to
f36c07c
Compare
The Workflow run is cancelling this PR. It has some failed jobs matching ^Pylint$,^Static checks,^Build docs$,^Spell check docs$,^Backport packages$,^Provider packages,^Checks: Helm tests$,^Test OpenAPI*. |
The Workflow run is cancelling this PR. It has some failed jobs matching ^Pylint$,^Static checks,^Build docs$,^Spell check docs$,^Backport packages$,^Provider packages,^Checks: Helm tests$,^Test OpenAPI*. |
b3917b4
to
fe31372
Compare
The change is backwards-compatible. It still allows to pass airflow command without "airflow" as first parameter, but you can now also pass "airflow" and the rest of the parameters will be treated as "airflow" command parameters. Documentation is updated to reflect the entrypoint behaviour including _CMD option in SQL connections. Part of apache#12762 and apache#12602 Partially extracted from apache#12766
Please rebase onto mainline once #12878 has been merged. |
The change is backwards-compatible. It still allows to pass airflow command without "airflow" as first parameter, but you can now also pass "airflow" and the rest of the parameters will be treated as "airflow" command parameters. Documentation is updated to reflect the entrypoint behaviour including _CMD option in SQL connections. Part of #12762 and #12602 Partially extracted from #12766
Fixes issue on openshift caused by KubernetesExecutor pods not running via the entrypoint script
fe31372
to
e866806
Compare
if [[ ${AIRFLOW_COMMAND} =~ ^(scheduler|worker|flower)$ ]]; then | ||
if [[ -n "${AIRFLOW__CELERY__BROKER_URL_CMD=}" ]]; then | ||
if [[ ${AIRFLOW_COMMAND} =~ ^(scheduler|celery|worker|flower)$ ]]; then | ||
if [[ -n "${AIRFLOW__CELERY__BROKER_URL_CMD=}" ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if [[ -n "${AIRFLOW__CELERY__BROKER_URL_CMD=}" ]]; then | |
if [[ -n "${AIRFLOW__CELERY__BROKER_URL_CMD=}" ]]; then |
# The Bash and python commands still should verify the basic connections so they are run after the | ||
# DB check but before the broker check | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add back/keep this comment.
Co-authored-by: Ash Berlin-Taylor <ash_github@firemirror.com>
The change is backwards-compatible. It still allows to pass airflow command without "airflow" as first parameter, but you can now also pass "airflow" and the rest of the parameters will be treated as "airflow" command parameters. Documentation is updated to reflect the entrypoint behaviour including _CMD option in SQL connections. Part of #12762 and #12602 Partially extracted from #12766 (cherry picked from commit 4d44faa)
* Kubernetes worker pod doesn't use docker container entrypoint Fixes issue on openshift caused by KubernetesExecutor pods not running via the entrypoint script * fix * Update UPGRADING_TO_2.0.md Co-authored-by: Ash Berlin-Taylor <ash_github@firemirror.com> * fix UPDGRADING * @ashb comments Co-authored-by: Ash Berlin-Taylor <ash_github@firemirror.com> (cherry picked from commit 190066c)
The change is backwards-compatible. It still allows to pass airflow command without "airflow" as first parameter, but you can now also pass "airflow" and the rest of the parameters will be treated as "airflow" command parameters. Documentation is updated to reflect the entrypoint behaviour including _CMD option in SQL connections. Part of #12762 and #12602 Partially extracted from #12766 (cherry picked from commit 4d44faa)
* Kubernetes worker pod doesn't use docker container entrypoint Fixes issue on openshift caused by KubernetesExecutor pods not running via the entrypoint script * fix * Update UPGRADING_TO_2.0.md Co-authored-by: Ash Berlin-Taylor <ash_github@firemirror.com> * fix UPDGRADING * @ashb comments Co-authored-by: Ash Berlin-Taylor <ash_github@firemirror.com> (cherry picked from commit 190066c)
The change is backwards-compatible. It still allows to pass airflow command without "airflow" as first parameter, but you can now also pass "airflow" and the rest of the parameters will be treated as "airflow" command parameters. Documentation is updated to reflect the entrypoint behaviour including _CMD option in SQL connections. Part of #12762 and #12602 Partially extracted from #12766 (cherry picked from commit 4d44faa)
* Kubernetes worker pod doesn't use docker container entrypoint Fixes issue on openshift caused by KubernetesExecutor pods not running via the entrypoint script * fix * Update UPGRADING_TO_2.0.md Co-authored-by: Ash Berlin-Taylor <ash_github@firemirror.com> * fix UPDGRADING * @ashb comments Co-authored-by: Ash Berlin-Taylor <ash_github@firemirror.com> (cherry picked from commit 190066c)
Fixes issue on openshift caused by KubernetesExecutor pods not running
via the entrypoint script
Addresses #12602
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.