-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Run stopSidecar logic even if TaskSpec has no sidecars to support injected sidecars such as istio-proxy #5067
Conversation
…ected sidecars such as istio-proxy Signed-off-by: Sascha Schwarze <schwarzs@de.ibm.com>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @SaschaSchwarze0. Thanks for your PR. I'm waiting for a tektoncd member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
The following is the coverage report on the affected files.
|
@SaschaSchwarze0 do you have any plans to continue working on this PR? Looking forward to this change! |
Sure, but beside asking for it, maybe you can help here #4731 (comment) ? |
I ended up taking a stab at the issue myself and made a new pr (#5565) |
@SaschaSchwarze0: PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
closing because there's a newer pull request addressing the same issue - #5565 - thank you @SaschaSchwarze0 (feel free to reopen if needed) /close |
@jerop: Closed this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Run stopSidecar logic even if TaskSpec has no sidecars to support injected sidecars such as istio-proxy
Signed-off-by: Sascha Schwarze schwarzs@de.ibm.com
Changes
Sidecars in a Tekton pod can be declared in the TaskSpec, but could theoretically also be injected by a webhook, such as the istio-proxy.
The logic in
stopSidecars
was optimized to omit loading a Pod unnecessarily. But that did not honor the webhook-injected sidecars.I am changing the logic to only skip the
stopSidecars
logic if therunning-in-environment-with-injected-sidecars
feature flag is set tofalse
(default istrue
).Still need to work out the unit test.
/kind bug
Fixes #4731
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
functionality, content, code)
(if there are no user facing changes, use release note "NONE")
Release Notes