Skip to content
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

Fixes validation bug for autoscaling/target #12698

Merged
merged 1 commit into from
Mar 7, 2022

Conversation

psschwei
Copy link
Contributor

@psschwei psschwei commented Mar 7, 2022

Signed-off-by: Paul S. Schweigert [email protected]

Fixed autoscaling.knative.dev/target validation logic so that an
invalid value error is returned if an invalid value is provided.
Previous logic did not distinguish between invalid values and a
value less than the minimum in the error message.

Release Note

The validating webhook returns a more accurate error for invalid `autoscaling.knative.dev/target` values

Signed-off-by: Paul S. Schweigert <[email protected]>

Fixed autoscaling.knative.dev/target validation logic so that an
invalid value error is returned if an invalid value is provided.
Previous logic did not distinguish between invalid values and a
value less than the minimum in the error message.
@knative-prow-robot knative-prow-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. area/API API objects and controllers area/autoscale labels Mar 7, 2022
@dprotaso
Copy link
Member

dprotaso commented Mar 7, 2022

/lgtm
/approve

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Mar 7, 2022
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dprotaso, psschwei

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 Mar 7, 2022
@codecov
Copy link

codecov bot commented Mar 7, 2022

Codecov Report

Merging #12698 (abd8863) into main (3e63ea9) will increase coverage by 0.06%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #12698      +/-   ##
==========================================
+ Coverage   87.25%   87.32%   +0.06%     
==========================================
  Files         196      196              
  Lines        9739     9741       +2     
==========================================
+ Hits         8498     8506       +8     
+ Misses        955      950       -5     
+ Partials      286      285       -1     
Impacted Files Coverage Δ
pkg/apis/autoscaling/annotation_validation.go 100.00% <100.00%> (ø)
pkg/reconciler/configuration/configuration.go 86.15% <0.00%> (+1.53%) ⬆️
pkg/autoscaler/scaling/multiscaler.go 89.09% <0.00%> (+1.81%) ⬆️
pkg/autoscaler/statserver/server.go 79.61% <0.00%> (+1.94%) ⬆️

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 1213bc7...abd8863. Read the comment docs.

@knative-prow-robot knative-prow-robot merged commit 15b9e1b into knative:main Mar 7, 2022
@psschwei psschwei deleted the validate-number branch March 10, 2022 16:43
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. area/API API objects and controllers area/autoscale 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.

3 participants