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

Automate zz_generated.deepcopy.go updates with make codegen #1735

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

kahirokunn
Copy link

@kahirokunn kahirokunn commented Dec 10, 2024

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 running make codegen. This automation streamlines the workflow, reducing manual intervention and improving developer efficiency.

Changes

  • Updated hack/update-codegen.sh to include helper generation for zz_generated.deepcopy.go.
  • Modified the Makefile to ensure make codegen handles the generation process effectively.

Benefits

  • Simplifies the maintenance of zz_generated.deepcopy.go.
  • Reduces manual effort and minimizes the risk of inconsistencies.

@kahirokunn kahirokunn changed the title chore(codegen): add helper generation to codegen script feat: Automate zz_generated.deepcopy.go updates with make codegen Dec 10, 2024
@kahirokunn kahirokunn changed the title feat: Automate zz_generated.deepcopy.go updates with make codegen Automate zz_generated.deepcopy.go updates with make codegen Dec 10, 2024
@kahirokunn kahirokunn force-pushed the add-helper-gen branch 2 times, most recently from 466293f to 7efe552 Compare December 10, 2024 02:37
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.

1 participant