-
Notifications
You must be signed in to change notification settings - Fork 279
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
Allow configuration of import pod restart policy #3619
base: main
Are you sure you want to change the base?
Conversation
Hi @paullanum. 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-sigs/prow 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 |
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.
Thanks for the PR and sharing a clear motivation!
My worry is introducing another API knob, one that we would have to work really hard to advertise and contain the complexity of
(from my experience, folks would just overlook it and hit those issues)
What if we could instead introduce a framework for detecting a terminal state like the one described here, and respond by deleting the pod via the controller? WDYT?
Thanks for your pull request. Before we can look at it, you'll need to add a 'DCO signoff' to your commits. 📝 Please follow instructions in the contributing guide to update your commits with the DCO Full details of the Developer Certificate of Origin can be found at developercertificate.org. The list of commits missing DCO signoff:
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-sigs/prow repository. I understand the commands that are listed here. |
I definitely understand the concern about adding another knob for users, though in this case I don't believe it would need to be heavily advertised since this is optional configuration and the currently hardcoded value ( Regarding complexity, I have to respectfully disagree that adding logic to detect failure states would be less complex than leveraging the out-of-the-box RestartPolicy behavior in Kubernetes. |
Might be wrong but I remember testing the |
@alromeros those assumptions are good to know about. How much of a lift would it be to convert the importer pod to a |
What this PR does / why we need it:
We had some DataVolumes failing because the storage request size was accidentally too small for the size of our ISO sources. Our DVs retried continuously until we noticed the issue, stuck in a download -> fail loop that caused a spike in our cloud costs due to the increased network usage. By being able to specify the RestartPolicy of the importer pods to
Never
, we could prevent this scenario in the future."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 #
Special notes for your reviewer:
Release note: