-
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
Move targetCPUPercentile into a flag #4799
Conversation
@jbartosik something like that? |
/test |
@matthyx: No presubmit jobs available for kubernetes/autoscaler@master 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. |
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.
Thank you, some comments
vertical-pod-autoscaler/pkg/recommender/input/cluster_feeder.go
Outdated
Show resolved
Hide resolved
339909d
to
5412b00
Compare
06770e6
to
ab7ddd8
Compare
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
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. Mostly looking good, I made a few, hopefully small suggestions.
vertical-pod-autoscaler/pkg/recommender/input/cluster_feeder_test.go
Outdated
Show resolved
Hide resolved
vertical-pod-autoscaler/pkg/recommender/input/cluster_feeder.go
Outdated
Show resolved
Hide resolved
Please ping me when I should take another look |
Thanks @jbartosik I've missed that... does my change suit you? |
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.
I think we're getting close. I left a few comments but I saw just some small stuff to change.
|
||
targetSelectorFetcher.EXPECT().Fetch(vpa).Return(tc.selector, tc.fetchSelectorError) | ||
if !tc.expectNoVpaFetch { |
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.
I'd strongly prefer to avoid having variables with negations in names. So expectVpaFetch
instead of expectNoVpaFetch
. It's easier to read & reason about variables that say something positive than about negated ones. I know it's some more writing for this commit but I think making code easier to maintain is worth it.
vertical-pod-autoscaler/pkg/recommender/input/cluster_feeder.go
Outdated
Show resolved
Hide resolved
vertical-pod-autoscaler/pkg/recommender/input/cluster_feeder_test.go
Outdated
Show resolved
Hide resolved
vertical-pod-autoscaler/pkg/recommender/input/cluster_feeder.go
Outdated
Show resolved
Hide resolved
@jbartosik thanks for your help, I think we're good to go :) |
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 good to me. But I don't want to merge it for a while more. I want to finish releasing VPA 0.12.0 (I think code is good but e2e tests are timing out) before merging any changes to VPA that are not necessary for the release.
So
/hold
for now. I plan to unhold and merge after I publish the release
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jbartosik, matthyx 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 |
/hold cancel |
@jbartosik can you also change the "Draft" status of the PR? I cannot do it, strangely :( |
/lgtm |
@matthyx can you add some documentation on running multiple recommenders. I think it can be quite simple, something like:
|
Move targetCPUPercentile into a flag
Which component this PR applies to?
vertical-pod-autoscaler
What type of PR is this?
/kind feature
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #4786
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: