Skip to content

Conversation

@yanggangtony
Copy link

@yanggangtony yanggangtony commented Apr 16, 2023

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

some cleanup for the addon-resizer , and other readme typos...

@k8s-ci-robot k8s-ci-robot added kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Apr 16, 2023
@k8s-ci-robot k8s-ci-robot requested a review from jbartosik April 16, 2023 04:03
@k8s-ci-robot k8s-ci-robot requested a review from kgolab April 16, 2023 04:03
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: yanggangtony
Once this PR has been reviewed and has the lgtm label, please assign jbartosik for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added area/vertical-pod-autoscaler size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Apr 16, 2023
var kubeClient kubernetes.Interface
_, err := rest.InClusterConfig()
if err != nil {
kubeClient = GetClientOrDie()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand this change

Copy link
Author

@yanggangtony yanggangtony Apr 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jbartosik
thanks your review..

the code GetClientOrDie has the same logic about rest.InClusterConfig() .
And will behave the same logic like now ..

But it is just chore cleanup. I will be glad to rollback. If you think its not necessary..😂😂

Copy link
Contributor

@Shubham82 Shubham82 Jun 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yanggangtony you can just close this PR as the changes are not necessary. (as per above comment)

remove this API version. While for now you can continue to use `v1beta2` API we
recommend using `autoscaling.k8s.io/v1` instead. `v1` and `v1beta2` APIs are
almost identical (`v1` API has some fields which are not present in `v1beta2)
almost identical (`v1` API has some fields which are not present in `v1beta2`)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is already resolved by PR #5823

@jbartosik jbartosik closed this Jun 5, 2023
@jbartosik
Copy link
Collaborator

I closed the PR because it seems it's no longer necessary; Please reopen if you disagree

@yanggangtony
Copy link
Author

thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/addon-resizer area/vertical-pod-autoscaler cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants