-
Notifications
You must be signed in to change notification settings - Fork 4k
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
refactor(*): move getKubeClient to utils/kubernetes #6294
refactor(*): move getKubeClient to utils/kubernetes #6294
Conversation
This PR is currently WIP. I will assign |
b9f636d
to
b365cf7
Compare
97841c2
to
fe6f655
Compare
/assign @x13n |
@x13n I think the PR is ready for review 🙏 |
thanks @vadasambar , i should have some time to review this on monday |
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 for following up on this. Just a single minor comment, feel free to ignore. Putting on hold for you to decide whether to change anything (or wait for @elmiko to take a look as well).
/lgtm
/approve
/hold
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vadasambar, x13n 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 |
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, happy to approve for capi depending on what @vadasambar wants to do regarding the pointer reference.
(cherry picked from commit b9f636d) Signed-off-by: qianlei.qianl <qianlei.qianl@bytedance.com> refactor: move logic to create client to utils/kubernetes pkg - expose `CreateKubeClient` as public function - make `GetKubeConfig` into a private `getKubeConfig` function (can be exposed as a public function in the future if needed) Signed-off-by: vadasambar <surajrbanakar@gmail.com> fix: CI failing because cloudproviders were not updated to use new autoscaling option fields Signed-off-by: vadasambar <surajrbanakar@gmail.com> refactor: define errors as constants Signed-off-by: vadasambar <surajrbanakar@gmail.com> refactor: pass kube client options by value Signed-off-by: vadasambar <surajrbanakar@gmail.com>
e2f7922
to
ae18f05
Compare
/lgtm |
@vadasambar: you cannot LGTM your own PR. In response to this:
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. |
😆 thought so. @x13n , @elmiko I have made the change to pass by value. Need lgtm from you folks 🙏 |
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
Thanks! Un-holding as well so it actually gets merged. /hold cancel |
oops, my bad, i thought there was an open question on the hold. |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
This is a follow-up to the closed PR: #6180 (<- check this PR for more info on the current PR)
Which issue(s) this PR fixes:
No issue exists for this. Can create one if needed.
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: