Skip to content
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

Closed

Conversation

gregsidelinger
Copy link
Contributor

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

  • Unit tests updated
  • End user documentation updated

Signed-off-by: Greg Sidelinger <gate@ilive4code.net>
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign szuecs for approval. For more information see the Kubernetes Code Review Process.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jan 2, 2024
@k8s-ci-robot
Copy link
Contributor

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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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.

@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jan 2, 2024
@jbilliau-rcd
Copy link

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.

@mloiseleur
Copy link
Contributor

This PR looks good at first glance.
/ok-to-test
/lgtm
@szuecs : Wdyt about settings this option to false by default ?

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jan 9, 2024
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 9, 2024
@szuecs
Copy link
Contributor

szuecs commented Jan 9, 2024

@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.

@szuecs
Copy link
Contributor

szuecs commented Jan 9, 2024

#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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

external-dns pod keeps restarting with aws route53 Throttling: Rate exceeded error
5 participants