-
Notifications
You must be signed in to change notification settings - Fork 263
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
Added scale-metric flag to configure metric name #1653
Conversation
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.
@vyasgun: 0 warnings.
In response to this:
Description
Added
--scale-metric
flag to configure the metric nameChanges
- Added flag
- Added unit test
- Validation already present in serving
Reference
Fixes #1205
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.
Codecov Report
@@ Coverage Diff @@
## main #1653 +/- ##
==========================================
+ Coverage 79.30% 79.32% +0.02%
==========================================
Files 171 171
Lines 12925 12939 +14
==========================================
+ Hits 10250 10264 +14
Misses 1955 1955
Partials 720 720
Continue to review full report at Codecov.
|
@@ -93,6 +94,9 @@ func (p *ConfigurationEditFlags) addSharedFlags(command *cobra.Command) { | |||
command.Flags().IntVar(&p.MaxScale, "scale-max", 0, "Maximum number of replicas.") | |||
p.markFlagMakesRevision("scale-max") | |||
|
|||
command.Flags().StringVar(&p.ScaleMetric, "scale-metric", "", "Metric the PodAutoscaler should scale on.") |
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.
Can we add a few examples here, like rps
or concurrency
maybe? Just for better illustration.
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.
Wdyt? I'd like to highlight it's "name": Name of metric to scale on by the PodAutoscaler.
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.
Just a subjective nit, otherwise OK.
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, I just updated the flag usage. I also updated the usage for --scale-target
flag. Does it read better now?
11669b2
to
b7dde26
Compare
Thanks! /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dsimansk, vyasgun 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 |
Description
Added
--scale-metric
flag to configure the metric nameChanges
Reference
Fixes #1205