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

fix: update patch to use DefaultBackoff #80

Closed
wants to merge 2 commits into from
Closed

Conversation

cam-garrison
Copy link
Collaborator

using DefaultBackoff rather than DefaultRetry should result in fewer conflicts with other controllers.

in addition, we also change removeFinalizer() to use our patch function.

using DefaultBackoff rather than DefaultRetry should result in fewer conflicts with other controllers
in addition, we also change removeFinalizer() to use our patch function.
Comment on lines +95 to +96
return fmt.Errorf("failed to remove finalizer patching resource %s/%s: %w",
sourceRes.GetNamespace(), sourceRes.GetName(), err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return fmt.Errorf("failed to remove finalizer patching resource %s/%s: %w",
sourceRes.GetNamespace(), sourceRes.GetName(), err)
return fmt.Errorf("failed to remove finalizer from %s (in %s): %w",
sourceRes.GroupVersionKind().String(), sourceRes.GetNamespace(), err)

@cam-garrison
Copy link
Collaborator Author

closing in favor of using controllerutil's createOrPatch() rather than our own Patch with Retry

@cam-garrison cam-garrison deleted the update-patching branch September 4, 2024 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants