Skip to content

Apply defaults to objects implementing CustomDefaulter#540

Merged
scothis merged 1 commit intoreconcilerio:mainfrom
scothis:custom-defaulter
Aug 15, 2024
Merged

Apply defaults to objects implementing CustomDefaulter#540
scothis merged 1 commit intoreconcilerio:mainfrom
scothis:custom-defaulter

Conversation

@scothis
Copy link
Member

@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>
@scothis scothis requested a review from mamachanko August 15, 2024 12:22
@codecov
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
@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