-
Notifications
You must be signed in to change notification settings - Fork 267
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
Add mesh preStop lifecycle hooks to transient CDI pods #3162
Conversation
Hi @bc185174. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with 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. |
[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 |
4d49377
to
bf467d8
Compare
/ok-to-test |
Apparently, it's been disabled for a while now @bc185174 would you consider using the builder until we converge on #3158? |
@bc185174: The following tests failed, say
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. I understand the commands that are listed here. |
Signed-off-by: bcoxford <[email protected]>
bf467d8
to
b1b20ee
Compare
Yeah of course thats fine - just looking at why the |
Signed-off-by: bcoxford <[email protected]>
Closing for now until figure out another solution. |
What this PR does / why we need it:
If the annotation
sidecar.istio.io/inject
(istio) orlinkerd.io/inject
(linkerd) is present on CDI's transient pods (not owned by ReplicaSet i.e. k8s jobs), a lifecycle prestop hook is added to those containers to ensure the sidecar proxies are shutdown.Linkerd: https://linkerd.io/2.15/tasks/graceful-shutdown/#graceful-shutdown-of-job-and-cronjob-resources
Istio: https://discuss.istio.io/t/best-practices-for-jobs/4968
Transient pods with the lifecycle hook change:
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #3012
Special notes for your reviewer:
Release note: