Skip to content

Conversation

@pbastia
Copy link

@pbastia pbastia commented Dec 2, 2020

closes: #12602

Refactors the PodGenerator.construct_pod(..) method to create kubernetes pods with args instead of command.
This allows the container's entrypoint to run, then call airflow with the proper arguments, instead of bypassing it altogether.

@boring-cyborg boring-cyborg bot added area:CLI provider:cncf-kubernetes Kubernetes (k8s) provider related issues area:Scheduler including HA (high availability) scheduler labels Dec 2, 2020
@boring-cyborg
Copy link

boring-cyborg bot commented Dec 2, 2020

Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/airflow/blob/master/CONTRIBUTING.rst)
Here are some useful points:

  • Pay attention to the quality of your code (flake8, pylint and type annotations). Our pre-commits will help you with that.
  • In case of a new feature add useful documentation (in docstrings or in docs/ directory). Adding a new operator? Check this short guide Consider adding an example DAG that shows how users should use it.
  • Consider using Breeze environment for testing locally, it’s a heavy docker but it ships with a working Airflow and a lot of integrations.
  • Be patient and persistent. It might take some time to get a review or get the final approval from Committers.
  • Please follow ASF Code of Conduct for all communication including (but not limited to) comments on Pull Requests, Mailing list and Slack.
  • Be sure to read the Airflow Coding style.
    Apache Airflow is a community-driven project and together we are making it better 🚀.
    In case of doubts contact the developers at:
    Mailing List: [email protected]
    Slack: https://s.apache.org/airflow-slack

@pbastia pbastia force-pushed the fix/k8s_worker_pod_uses_container_entrypoint branch from 1155664 to d9e8bbf Compare December 2, 2020 20:23
@github-actions
Copy link

github-actions bot commented Dec 2, 2020

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*.

@pbastia pbastia force-pushed the fix/k8s_worker_pod_uses_container_entrypoint branch from 14f3428 to 269ba8b Compare December 2, 2020 23:54
@pbastia pbastia force-pushed the fix/k8s_worker_pod_uses_container_entrypoint branch from 269ba8b to 95e15dc Compare December 3, 2020 00:14
potiuk added a commit to PolideaInternal/airflow that referenced this pull request Dec 7, 2020
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
potiuk added a commit that referenced this pull request Dec 7, 2020
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
potiuk added a commit that referenced this pull request Dec 13, 2020
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)
kaxil pushed a commit that referenced this pull request Jan 21, 2021
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)
kaxil pushed a commit that referenced this pull request Jan 22, 2021
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)
@dimberman
Copy link
Contributor

Hi @pbastia, can you please rebase this PR? I can merge once that is done :)

@matthieu-foucault
Copy link

@dimberman didn't this get fixed in #12766 ?

@dimberman
Copy link
Contributor

@matthieu-foucault Doh! Thanks for catching that. Closing this.

@dimberman dimberman closed this Feb 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:CLI area:Scheduler including HA (high availability) scheduler provider:cncf-kubernetes Kubernetes (k8s) provider related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Kubernetes worker pod doesn't use docker container entrypoint, removing OpenShift support

3 participants