Replace duplicate intMax helpers with builtin max#16665
Replace duplicate intMax helpers with builtin max#16665jahnavigajjala-3 wants to merge 2 commits into
Conversation
|
|
|
Welcome @jahnavigajjala-3! It looks like this is your first PR to knative/serving 🎉 |
|
Hi @jahnavigajjala-3. Thanks for your PR. I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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: jahnavigajjala-3 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
linkvt
left a comment
There was a problem hiding this comment.
/lgtm
/ok-to-test
min could be renamed to minScale to avoid also shadowing the builtin min but this is preexisting.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #16665 +/- ##
==========================================
+ Coverage 80.29% 80.32% +0.02%
==========================================
Files 217 217
Lines 13568 13560 -8
==========================================
- Hits 10895 10892 -3
+ Misses 2308 2303 -5
Partials 365 365 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
/lgtm |
|
/retest |
Fixes #16664
Proposed Changes
intMaxhelpers in the KPA and HPA reconcilers with Go's built-inmax()function.intMaxhelper implementations from both packages.maxvariable inkpa/scaler.gotomaxScaleto avoid shadowing the built-inmax()function.