-
Notifications
You must be signed in to change notification settings - Fork 382
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
makefile: containerize CRD generation and rename codegen and generate targets #2131
Conversation
✅ Deploy Preview for tetragon ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
We encountered some version-specific differences related to golang tooling which impact the resulting CRD generation from make generate. To solve this problem, let's containerize the CRD generation workflow so that we can get consistent output through consistent tooling. while we're at it, rename the generate target to crds to disambiguate it from protobuf code generation. We keep the old generate target around as an alias for backward compatibility. Signed-off-by: William Findlay <[email protected]>
Now that we have renamed the generate target to crds, it makes sense to also rename to codegen target to make it more clear that it specifically refers to protobuf codegen. Just as with make generate, we keep the old codegen target around to use as an alias for backward compatbility. We also remove the original protogen dockerfile as it is no longer needed. Instead, we can simply use the base cilium-builder image. Signed-off-by: William Findlay <[email protected]>
731c0f6
to
6df735d
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.
Thanks that's a really great patch, I was always confused between generate
and codegen
and this removes useless stuff and put stuff in the right place! Thank you
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.
I love that move
!
Containerize the CRD generation workflow to resolve a version consistency issue we encountered. Rename the generate and codegen targets to disambiguate them.