-
Notifications
You must be signed in to change notification settings - Fork 739
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
Automate zz_generated.deepcopy.go updates with make codegen #1735
Conversation
7efe552
to
f15d2b5
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! thank you @kahirokunn 🙇
could you please squash this into one commit?
Okay. I will. |
chore(gatewayapi/v1beta1): add deepcopy-gen annotations run `make codegen` Signed-off-by: kahirokunn <[email protected]>
f15d2b5
to
febc327
Compare
@aryan9600 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1735 +/- ##
==========================================
+ Coverage 35.08% 39.27% +4.18%
==========================================
Files 283 284 +1
Lines 24653 22379 -2274
==========================================
+ Hits 8650 8789 +139
+ Misses 15063 12643 -2420
- Partials 940 947 +7 ☔ View full report in Codecov by Sentry. |
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
Thanks @kahirokunn
Description
Problem
There was no provided method to update
zz_generated.deepcopy.go
. As a result, updating related code required additional manual steps, increasing both effort and the potential for errors.Solution
This PR modifies the code generation process to allow updating
zz_generated.deepcopy.go
by simply runningmake codegen
. This automation streamlines the workflow, reducing manual intervention and improving developer efficiency.Changes
hack/update-codegen.sh
to include helper generation forzz_generated.deepcopy.go
.make codegen
handles the generation process effectively.Benefits
zz_generated.deepcopy.go
.