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: stop using deprecated webhook.Validator and webhook.Defaulter #575

Conversation

mamachanko
Copy link
Contributor

fixes #574

Copy link

codecov bot commented Jan 17, 2025

Codecov Report

Attention: Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 58.25%. Comparing base (56116b9) to head (4170858).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
reconcilers/webhook.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #575   +/-   ##
=======================================
  Coverage   58.25%   58.25%           
=======================================
  Files          33       33           
  Lines        3787     3787           
=======================================
  Hits         2206     2206           
  Misses       1487     1487           
  Partials       94       94           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@scothis
Copy link
Member

scothis commented Jan 17, 2025

Thanks for starting this. While the Defaulter interface has now been removed upstream, I'd like to keep support for it here as removing it can lead to subtile bugs that are hard to diagnose. I'll add a commit to restore the support in this PR.

The webhook.Defaulter interface has been removed upstream, but we should
continue to support the Default() method when reconciling a resource.
Removing support for this method can lead to subtile bugs that are
difficult to track down.

Signed-off-by: Scott Andrews <[email protected]>
@scothis scothis merged commit 8ccfbec into reconcilerio:main Jan 17, 2025
2 checks passed
@mamachanko mamachanko deleted the topic/mamachanko/main/controller-runtime-deprecations branch January 20, 2025 07:24
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