Skip to content
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

Fix somes cleanup things for addon-resizer. #5688

Closed
wants to merge 1 commit into from
Closed

Fix somes cleanup things for addon-resizer. #5688

wants to merge 1 commit into from

Conversation

yanggangtony
Copy link
Member

@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...

Signed-off-by: yanggang <gang.yang@daocloud.io>
@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
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.

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
@@ -130,11 +130,9 @@ func main() {
log.Infof("Recommended range +/-%d%%", *recommendationOffset)

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
Member 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)

@@ -67,7 +67,7 @@ The current default version is Vertical Pod Autoscaler 0.13.0
**NOTE:** In 0.13.0 we deprecate `autoscaling.k8s.io/v1beta2` API. We plan to
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
Member 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.

None yet

4 participants