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
[AIRFLOW-5215] Add sidecar containers support to Pod class #5824
Conversation
Test failure seems unrelated. |
Do we want to treat sidecar containers differently then the main container? |
@cBournhonesque At this time I am trying keep this as API-compatible as possible. Changing the |
@dimberman PTAL when you have a chance. |
Does this have the problem where the task won't finish as long as the sidecar container is still alive? Do we need an option to kill the sidecar when the main pod finishes? |
@ashb Yes, it does. This PR is basically a bandaid to allow users to add sidecars with the pod mutation hook. Users have a couple of options to kill the sidecar when the main container exits:
Obviously both these methods are rather hackish, but I can't immediately think of a straightforward way to kill the sidecar when the main container exits, that would support both |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Make sure you have checked all steps below.
Jira
Description
Adds a
sidecar_containers
argument toPod
, allowing users to pass a list of sidecar container definitions to add to the Pod. This is notably useful with the pod mutation hook.Tests
My PR adds the following unit tests OR does not need testing for this extremely good reason:
test_extract_sidecar_containers
.Commits
Documentation
Pod
's docstring is currently not up to date. Will address in a subsequent PR.Code Quality
flake8