- 
                Notifications
    
You must be signed in to change notification settings  - Fork 1.5k
 
feat: process generated CRDs before they are written out #6828
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
Conversation
43942e9    to
    72272b7      
    Compare
  
    72272b7    to
    55b935e      
    Compare
  
    There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a great improvement!
Do you mind adding a test that shows how to use the feature on the user side?
It should be relatively easy here.
Also updating the docs to reflect the changes (not a blocker can be done later).
Side note that there should be something not aligned with the spotless configuration ...
6d3266a    to
    8c20f6a      
    Compare
  
    | } | ||
| 
               | 
          ||
| /** | ||
| * @deprecated use {@link #emitCrd(HasMetadata, Set, CRDGenerationInfo, CRDPostProcessor)} instead | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new method is marked protected, users won't be able to transition.
On the other hand, why don't we make CRDPostProcessor a member variable (just as output, minQuotes, etc.) that defaults to the nullProcessor -> withCrdPostProcessor().
This way the method signature won't keep growing or changing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, that emitCRD method should probably not have been exposed in the first place and I don't think anyone is using it but the suggested change is a good one. Thank you!
8c20f6a    to
    a529875      
    Compare
  
    
          
 | 
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thx!


Description
Fixes #6827
Type of change
test, version modification, documentation, etc.)
Checklist