-
Notifications
You must be signed in to change notification settings - Fork 39.9k
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
feature(kubectl): support mem-percent,cpu-value,cpu-average-value,mem-value,mem-average-value flag to kubectl autoscale #129373
base: master
Are you sure you want to change the base?
Conversation
Skipping CI for Draft Pull Request. |
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The 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-sigs/prow repository. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: googs1025 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 |
657001e
to
a3b9c5d
Compare
…-value,mem-average-value flag to kubectl autoscale
a3b9c5d
to
b926312
Compare
@@ -224,6 +275,11 @@ func (o *AutoscaleOptions) Run() error { | |||
if err := o.handleHPA(hpaV2); err != nil { | |||
klog.V(1).Infof("Encountered an error with the v2 HorizontalPodAutoscaler: %v. "+ | |||
"Falling back to try the v1 HorizontalPodAutoscaler", err) | |||
// check if the HPA can be created using v1 API. | |||
if !o.canCreateHPAV1() { |
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.
Here we need to determine whether it can be created in V1, because there are different between v1 and v2.
ping @soltysh please help this :) |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes kubernetes/kubectl#1481
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: