-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 an option to not bail on errors #4147
Add an option to not bail on errors #4147
Conversation
Signed-off-by: Greg Sidelinger <gate@ilive4code.net>
[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 @gregsidelinger. Thanks for your PR. I'm waiting for a kubernetes-sigs 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. |
Yes please, I heartily endorse this. I can't fathom anybody upgrading past 0.13.4, I still have no idea why this PR was merged or why anybody thought it was a good idea to FATALLY ERROR just because a DNS record can't be created. No other controller I've ever worked with works this way....if this change is going to be kept, at least let us opt out of it and make the controller functional again. |
This PR looks good at first glance. |
@mloiseleur I think the option makes no sense. Why not have errors of type softerror and check with error.Is(), that it's a SoftError? I can sketch out a PR with it and then everyone can claim that $err is a softerror. |
#4166 adds a feature to add provider.WrapSoftError(err) such that we can differentiate to fail fast or not for a given error. So we will have now the possibility to decide if this is an error that could automatically fix itself or not. |
Description
#3009 causes external-dns to exit on any errors returned up the stack even though some providers return "soft" errors which do not need to be treated as fatal as they most likely will work on the next controller sync. This change adds a new bail-on-error flag that allows the user to decide how these errors should be treated. The current behavior keeps the current default of exiting on an error however this can be changed to by adding --no-bail-on-error flag.
Fixes #4067
Checklist