-
Notifications
You must be signed in to change notification settings - Fork 884
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
optimize unstructured convert methods #2311
optimize unstructured convert methods #2311
Conversation
01bd99c
to
9a29630
Compare
Generally looks good. We didn't use the |
Not yet, when upgrading to go 1.18, consider using generics. |
c00673e
to
1500254
Compare
I'm hesitant to introduce generics even though we are already in Go1.18. Because technically we can use generics in master(v1.3), but can't cherry-pick patches to release branches(<=release-1.2). |
113939d
to
151b3f1
Compare
Thanks for sharing, I read k8s generics policy and I agreed. We need to use generics sparingly. |
/assign pigletfly RainbowMango |
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.
Looks great!
Let's fix the new added todo with this patch.
d472b43
to
3df223b
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
You might need to squash your commits.
3df223b
to
6438571
Compare
Signed-off-by: weilaaa <weilanidaye@gmail.com>
6438571
to
4ed7010
Compare
PTAL again |
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
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: RainbowMango 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 |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Instead of adding a conversion function for each resource, we should replace it with a generic conversion function.