Add support for service minscale annotation#16574
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Alexander-Kita 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 |
|
Hi @Alexander-Kita. 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. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #16574 +/- ##
==========================================
- Coverage 80.36% 80.20% -0.17%
==========================================
Files 217 219 +2
Lines 17305 13709 -3596
==========================================
- Hits 13907 10995 -2912
+ Misses 3035 2340 -695
- Partials 363 374 +11 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
/ok-to-test |
|
|
||
| // ServiceMinscaleAnnotationKey is the annotation key attached to a Route and Service indicating | ||
| // the minScale across all revisions | ||
| ServiceMinscaleAnnotationKey = GroupName + "/service-min-scale" |
There was a problem hiding this comment.
I was thinking we just use the existing min-scale annotation (without the service- prefix)
There was a problem hiding this comment.
Then we wouldn't need to adjust the KPA code etc.
What were your thoughts about having it separate?
There was a problem hiding this comment.
Originally I tried this. However, if the user removes the service minscale annotation from the service or route and updates, I could not find a good way to determine what the original revision minscale was since it was overwritten.
Fixes #14184
Proposed Changes
Release Note