-
Notifications
You must be signed in to change notification settings - Fork 17
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
Introduce --timeout-fatal to control readiness timeouts #409
Conversation
…ing in the absence of a linkerd-proxy Signed-off-by: Dan Levin <dan@badpacket.in>
Hi, is there any way to get feedback on whether this PR would be considered for inclusion? |
@cromulentbanana Sorry for the delay here!! We'll be looking at this shortly – one immediate question is whether you've thought about how this might interact with the new sidecar KEP? I think we'll need to be thinking about that.. |
Good question. In a nutshell, I expect that this To the best of my understanding based on this documentation I believe that the changes I'm introducing with my
I haven't yet been able to evaluate points 1 or 2 experimentally. |
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.
@cromulentbanana Thanks for the PR! This makes sense in general.
What do you think about renaming this flag to be something like --timeout-fatal=false
(with a default to true to preserve the existing behavior)?
My reasoning is: this behavior only takes effect when a timeout is specified. If the timeout is unset, then we'll never execute the command; so --force-exec doesn't feel accurate.
this sounds perfectly reasonable. Feel free to change the name to your suggestion, or let me know if I should do so. |
…l and continue executing the command and/or shutting down Signed-off-by: Dan Levin <dan@badpacket.in>
@olix0r please let me know if this looks acceptable. |
hi, is anyone able to pick up the review/approval of this PR? |
@cromulentbanana sorry for the lag. it's in my list to review today. |
@cromulentbanana OK, I've figured out the clap-fu needed to support the suggestion I made (--timeout-fatal=false); I'm going to push that change to your branch (a long with the formatting fix needed to pass CI) and get this merged. Thanks for the submission! 🎉 |
Problem Statement: I want to ensure that when linkerd-await is used for
shutdown
purposes, it will run its given command both in the case that the proxy sidecar container is injected to the pod, but also in the case where that proxy is not injected. The motivation here is that I have some cronjobs which need to run the same configured job in both a meshed, and possibly also unmeshed configuration, but where it's not practical to set theDISABLE
environment variable in advance.Under these conditions, the current behavior of linkerd-await leads to a timeout in the absence of the proxy and the job fails.
This modification allows linkerd-await to execute a command of a k8s job in either case where the proxy is or is not present.
I'm glad to take feedback and questions on this proposal.