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
update 'update-codegen.sh' to make it works outside GOPATH #481
Conversation
Welcome @zwpaper! |
Hi @zwpaper. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@zwpaper thanks for the PR, but I cannot merge as-is now. There is a history for b5ea0f1#diff-149dfe7bb29d1191dceae3a52915e750e64b7f87257a5fb309c29d3056e2a95d. Given it's pretty common for scheduler plugins to manipulate CR objects, and more important, different CR objects. So it makes a lot of sense to not use generated clients (the traditional k/k way); instead, leverage controller-runtime and follow kubebuilder's annotation syntac to use general (dynamic) client to manipulate the CR objects. However, that migration (from static clients to controller-runtime's client) is half-way done due to lack of volunteers. We need to finish it up sometime so we don't need static clients anymore. |
Hi @Huang-Wei, got it! as for the volunteers part, where can I dig deeper into the controller-runtime topic? I would like to contribute to it, I used the operator from time to time, and maybe there is something I could help with. |
I need to take a look at the codebase first.. to see where we were left at. And then come up with a plan to work on the migration. Stay tuned. |
Signed-off-by: Wei Zhang <kweizh@gmail.com>
Hi @Huang-Wei, I have updated the PR, and deleted the generated clientset related parts. it is still necessary to do this fix because we still need also, I have updated the |
as for the controller runtime part, I will dig into the code base before your plan is ready😁 |
happened to find this PR may fix #445 as it failed due to not putting |
Thanks. The current state looks good. /ok-to-test |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Huang-Wei, zwpaper The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: Wei Zhang kweizh@gmail.com
What type of PR is this?
/kind bug
What this PR does / why we need it:
b5ea0f1#diff-149dfe7bb29d1191dceae3a52915e750e64b7f87257a5fb309c29d3056e2a95d This commit previously deleted the
generate-group.sh
, but then can not gen clientset, informers and listers.this PR:
generate-group.sh
back to generate clientset, informers, listers for scheduler-pluginsv0.11.1
to match https://github.com/kubernetes-sigs/scheduler-plugins/blob/master/hack/verify-crdgen.sh#L30output-base
for codegen to make it works outside GOPATHWhich issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
ref: kubernetes-sigs/kwok#226
Does this PR introduce a user-facing change?