-
Notifications
You must be signed in to change notification settings - Fork 52
✨feat: add informers, listers, and codegen for tenancy APIs #599
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
✨feat: add informers, listers, and codegen for tenancy APIs #599
Conversation
Signed-off-by: Rishi Jat <[email protected]>
|
Thank you for submitting your first Pull Request to KubeStellar. We are delighted to have you in our Universe! |
|
/cc @MikeSpreitzer |
|
This PR needs evidence that it works as intended. |
|
@rishi-jat hope you are doing well, could you fix these review points ? |
|
Will do this as soon as possible. I’m currently out of town on holiday until 7 January and will address all the suggestions after that. Thanks! |
Signed-off-by: Rishi Jat <[email protected]>
Signed-off-by: Rishi Jat <[email protected]>
Signed-off-by: Rishi Jat <[email protected]>
Signed-off-by: Rishi Jat <[email protected]>
Signed-off-by: Rishi Jat <[email protected]>
Signed-off-by: Rishi Jat <[email protected]>
Generated using k8s.io/code-generator v0.32.10: - client-gen for typed clientset - lister-gen for listers - informer-gen for informers API group: tenancy.kflex.kubestellar.org/v1alpha1 CRDs: ControlPlane, PostCreateHook (cluster-scoped) Signed-off-by: Rishi Jat <[email protected]>
- New script compares freshly generated code against committed code - Makefile verify-codegen target now uses verify-codegen.sh - Removed dependency on update-codegen.sh (which requires clean tree) Signed-off-by: Rishi Jat <[email protected]>
Signed-off-by: Rishi Jat <[email protected]>
Signed-off-by: Rishi Jat <[email protected]>
…dback and fix remaining comment Signed-off-by: Rishi Jat <[email protected]>
MikeSpreitzer
left a comment
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.
Just a couple minor comments left, could be fixed in this PR or a later one.
/lgtm
Thanks!
|
LGTM label has been added. DetailsGit tree hash: 588be97d0b30c0701a4bbb138d663b2cbc0f8146 |
…per maintainer feedback Signed-off-by: Rishi Jat <[email protected]>
api/v1alpha1/doc.go
Outdated
|
|
||
| // Package v1alpha1 contains API Schema definitions for the tenancy v1alpha1 API group | ||
| // +kubebuilder:object:generate=true | ||
| // +k8s:deepcopy-gen=package |
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.
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.
removed.
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.
fixed.
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.
"fixed" means that the removal was undone, right? Why was the removal undone?
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.
Sorry for the confusion. Here's what happened:
- First commit: I removed both +k8s:deepcopy-gen=package AND +kubebuilder:object:generate=true
- This caused the CI build to fail with errors like "DeepCopyInto undefined"
- Second commit: I restored only +kubebuilder:object:generate=true because it's needed for controller-gen to generate deepcopy methods
Current state of doc.go:
// +kubebuilder:object:generate=true
// +groupName=tenancy.kflex.kubestellar.org
The +k8s:deepcopy-gen=package marker is removed as you requested. The +kubebuilder:object:generate=true marker remains because without it, controller-gen doesn't generate the DeepCopyInto() methods that the code depends on.
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.
Question: Should I follow the kubestellar pattern exactly and remove the kubebuilder marker too? If so, how does kubestellar generate its deepcopy methods?
…edback Signed-off-by: Rishi Jat <[email protected]>
|
/retest |
…py generation Signed-off-by: Rishi Jat <[email protected]>
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 changes in this file are beyond the scope of this PR and are not mentioned in the PR's opening comment.
MikeSpreitzer
left a comment
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.
This is good enough to merge, although there are still some open comments.
/lgtm
/approve
|
LGTM label has been added. DetailsGit tree hash: a53443e192d45e7c0650cdd7f7fd1673fadcae38 |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: MikeSpreitzer The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest |
chore: remove stale workflow in favor of Prow
Summary
Completes typed client support by adding generated shared informers, typed listers,
and reproducible code-generation tooling for tenancy APIs.
Follows standard Kubernetes client-go conventions.
Fixes #277