这是indexloc提供的服务,不要输入任何密码
Skip to content

Update autoscaler CM example block for max-scale-limit #9577

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

Merged
merged 3 commits into from
Oct 2, 2020

Conversation

taragu
Copy link
Contributor

@taragu taragu commented Sep 25, 2020

Part of #8628
/hold for #9496

Proposed Changes

Update autoscaler CM example block for max-scale-limit

Release Note

Adding cluster-wide flag max-scale-limit. This ensures that both cluster-wide flag max-scale and per-revision annotation "autoscaling.knative.dev/maxScale" for new revision will not exceed this number.

/assign @markusthoemmes @vagababov @julz

@knative-prow-robot knative-prow-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 25, 2020
@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Sep 25, 2020
@knative-prow-robot knative-prow-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Sep 25, 2020
Comment on lines 191 to 194
# max-scale-limit ensures that both cluster-wide flag max-scale and per-revision
# annotation "autoscaling.knative.dev/maxScale" for new revision will not exceed
# this number. If max-scale-limit is greater than 0, it disables both explicitly
# setting "autoscaling.knative.dev/maxScale" annotation to 0 and leaving it unset.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like the fact that this affects both the annotation and the config might be implicit. How about:

Suggested change
# max-scale-limit ensures that both cluster-wide flag max-scale and per-revision
# annotation "autoscaling.knative.dev/maxScale" for new revision will not exceed
# this number. If max-scale-limit is greater than 0, it disables both explicitly
# setting "autoscaling.knative.dev/maxScale" annotation to 0 and leaving it unset.
# max-scale-limit sets the maximum permitted value for the max scale of a revision.
# When this is set to a positive value, a revision with a maxScale above that value
# (including a maxScale of "0" = unlimited) is disallowed.
# A value of zero (the default) allows any limit, including unlimited.

Copy link
Member

@julz julz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

Will let someone else approve

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 25, 2020
Copy link
Contributor

@vagababov vagababov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we're gonna merge the other one, I can approve. If we're going to hold until release — then we should not have this in the release CM :)

@julz
Copy link
Member

julz commented Sep 25, 2020

Oh yeah good point

/hold for release

@taragu taragu force-pushed the max-maxscale-cm-example branch from bca6931 to f9e34f6 Compare September 30, 2020 15:18
@knative-prow-robot knative-prow-robot removed the lgtm Indicates that a PR is ready to be merged. label Sep 30, 2020
@codecov
Copy link

codecov bot commented Sep 30, 2020

Codecov Report

Merging #9577 into master will increase coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #9577      +/-   ##
==========================================
+ Coverage   88.35%   88.38%   +0.02%     
==========================================
  Files         193      193              
  Lines        8632     8632              
==========================================
+ Hits         7627     7629       +2     
+ Misses        761      760       -1     
+ Partials      244      243       -1     
Impacted Files Coverage Δ
pkg/reconciler/configuration/configuration.go 89.16% <0.00%> (+1.66%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5c786b3...f9e34f6. Read the comment docs.

Copy link
Member

@julz julz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 30, 2020
Copy link
Contributor

@vagababov vagababov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: taragu, vagababov

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 30, 2020
@taragu
Copy link
Contributor Author

taragu commented Oct 2, 2020

/hold cancel

@knative-prow-robot knative-prow-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 2, 2020
@knative-prow-robot knative-prow-robot merged commit d41169b into knative:master Oct 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants