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

Apply defaults to objects implementing CustomDefaulter #540

Merged
merged 1 commit into from
Aug 15, 2024

Conversation

scothis
Copy link
Contributor

@scothis scothis commented Aug 15, 2024

The controller-runtime Defaulter interface is deprecated in favor of CustomDefaulter. We now detect either interface and apply it to implementing objects.

The controller-runtime Defaulter interface is deprecated in favor of
CustomDefaulter. We now detect either interface and apply it to
implementing objects.

Signed-off-by: Scott Andrews <scott@andrews.me>
Copy link

codecov bot commented Aug 15, 2024

Codecov Report

Attention: Patch coverage is 37.50000% with 5 lines in your changes missing coverage. Please review.

Project coverage is 60.34%. Comparing base (20db0da) to head (bc2cb08).
Report is 2 commits behind head on main.

Files Patch % Lines
reconcilers/webhook.go 25.00% 2 Missing and 1 partial ⚠️
reconcilers/resource.go 50.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #540      +/-   ##
==========================================
- Coverage   60.46%   60.34%   -0.13%     
==========================================
  Files          32       32              
  Lines        2861     2867       +6     
==========================================
  Hits         1730     1730              
- Misses       1039     1043       +4     
- Partials       92       94       +2     

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

Copy link
Contributor

@mamachanko mamachanko left a comment

Choose a reason for hiding this comment

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

excellent

@scothis scothis merged commit 5c96b7e into reconcilerio:main Aug 15, 2024
2 of 4 checks passed
@scothis scothis deleted the custom-defaulter branch August 15, 2024 13:53
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