-
Notifications
You must be signed in to change notification settings - Fork 39.6k
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
Use structured generator for kubectl autoscale #55913
Conversation
/ok-to-test |
pkg/kubectl/autoscale.go
Outdated
return fmt.Errorf("name must be specified") | ||
} | ||
if s.MaxReplicas <= 0 { | ||
return fmt.Errorf("'max' is a required parameter and must be greater than zero") |
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.
this different with validateFlags
func in autoscale.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.
@zjj2wry Thanks for your review, Done, PTAL
e47d5bb
to
53b9e51
Compare
/test pull-kubernetes-verify |
/test pull-kubernetes-unit |
I suggest you split this PR into 2 PR. |
/retest |
@mengqiy Done, PTAL |
/test pull-kubernetes-e2e-gce |
/lgtm /assign @fabianofranz |
Thanks @wackxu! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fabianofranz, mengqiy, wackxu Associated issue: 138 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
/retest Review the full test history for this PR. |
Automatic merge from submit-queue (batch tested with PRs 55900, 55995, 55913, 55467, 55376). If you want to cherry-pick this change to another branch, please follow the instructions here. |
What this PR does / why we need it:
Use structured generator for kubectl autoscale
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):part of # kubernetes/kubectl#138
Special notes for your reviewer:
/assign @mengqiy
Release note: