GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Allow manual scaling of the Pod Autoscaler by dprotaso · Pull Request #16186 · knative/serving

Conversation

@dprotaso

@dprotaso dprotaso commented Oct 22, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member
  • Exclude autoscaling annotations from everything but the KPA
  • propagate annotation updates to the Pod Autoscaler
Allow adjusting Revision min/max scale annotations

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
dprotaso added 2 commits October 21, 2025 22:15
@dprotaso
Exclude autoscaling annotations from everything but the KPA
0a226a7
When creating child resources for a Revisino we now exclude
propagating autoscaling annotations. The exception is the KPA
for which we do propagate annotations.
@dprotaso
propagate annotation updates to the Pod Autoscaler
6c3267f
@knative-prow
knative-prow Bot requested review from dsimansk, linkvt and skonto October 22, 2025 03:09
@knative-prow knative-prow Bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Oct 22, 2025
@knative-prow

knative-prow Bot commented Oct 22, 2025

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dprotaso

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [dprotaso]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@knative-prow knative-prow Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 22, 2025
@dprotaso dprotaso changed the title Allow manual scaling of the Pod Autoscaler [wip] Allow manual scaling of the Pod Autoscaler Oct 22, 2025
@knative-prow knative-prow Bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 22, 2025
@dprotaso dprotaso mentioned this pull request Oct 22, 2025
Manually scale Pod Autoscaler of a revision #15480
Closed
@dprotaso dprotaso added this to the v1.20.0 milestone Oct 22, 2025
@codecov

codecov Bot commented Oct 22, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 79.36508% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.03%. Comparing base (54868c2) to head (5abda16).
⚠️ Report is 26 commits behind head on main.

Files with missing lines Patch % Lines
pkg/testing/functional.go 0.00% 9 Missing ⚠️
pkg/reconciler/revision/reconcile_resources.go 88.57% 2 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #16186      +/-   ##
==========================================
- Coverage   80.08%   80.03%   -0.05%     
==========================================
  Files         214      214              
  Lines       16940    13313    -3627     
==========================================
- Hits        13566    10655    -2911     
+ Misses       3015     2296     -719     
- Partials      359      362       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dprotaso added 3 commits October 23, 2025 14:29
@dprotaso
Propagate the KPA status even when updating the KPA fails
f3512f1
Otherwise if the update fails this can have a side-effect of
marking a revision as ready.

Specifically when a Deployment has >1 ready Pods it'll mark the
Revision as Ready. It's the KPA status propagation that will mark
the revision still deploying when it hasn't reached min-scale.
@dprotaso
don't remove annotations that are added by defaulting/webhooks
0cfd5df
@dprotaso
tweak diff output so we don't see defaulted values always being added
9c5da28
@dprotaso
dprotaso force-pushed the manual-scale branch from 9a83a95 to 9c5da28 Compare October 23, 2025 18:30
dprotaso
dprotaso commented Oct 23, 2025
View reviewed changes
Comment thread pkg/reconciler/revision/reconcile_resources.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

dprotaso added 2 commits October 23, 2025 19:29
@dprotaso
handle the case when an annotation is deleted
6e49f6a
@dprotaso
fix unit tests
3e16ba4
@dprotaso dprotaso modified the milestones: v1.20.0, v1.21.0 Oct 27, 2025
@dprotaso

dprotaso commented Oct 27, 2025

Copy link
Copy Markdown
Member Author

I don't want to merge this the day before the release - moving to the next one

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dprotaso dprotaso changed the title [wip] Allow manual scaling of the Pod Autoscaler Allow manual scaling of the Pod Autoscaler Oct 27, 2025
@dprotaso

dprotaso commented Oct 27, 2025

Copy link
Copy Markdown
Member Author

/hold

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@knative-prow knative-prow Bot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. and removed do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. labels Oct 27, 2025
@dprotaso

dprotaso commented Oct 30, 2025

Copy link
Copy Markdown
Member Author

/hold cancel

release is done

/assign @Fedosin @linkvt @nader-ziada

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@knative-prow knative-prow Bot assigned Fedosin Oct 30, 2025
@knative-prow knative-prow Bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 30, 2025
@knative-prow knative-prow Bot assigned linkvt and nader-ziada Oct 30, 2025
@dprotaso
include e2e test
6d5613e
@dprotaso

dprotaso commented Oct 31, 2025

Copy link
Copy Markdown
Member Author

/retest

Webhook flake

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

linkvt
linkvt reviewed Oct 31, 2025
View reviewed changes

@linkvt linkvt left a comment

Copy link
Copy Markdown
Member

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.

Looks good to me besides the small comment I made 👍
I'll leave the approve to someone with more experience though.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pkg/reconciler/revision/reconcile_resources.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

dprotaso added 4 commits October 31, 2025 10:05
@dprotaso
minor refactoring - tweak func names
8d3991e
@dprotaso
further refactoring and godoc
b35e1bb
@dprotaso
add a unit test to cover deleting an autoscaling annotation
51a81a9
@dprotaso
update key name to match test name
182581e
nader-ziada
nader-ziada reviewed Nov 3, 2025
View reviewed changes
Comment thread pkg/reconciler/revision/reconcile_resources.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

nader-ziada
nader-ziada reviewed Nov 3, 2025
View reviewed changes
Comment thread pkg/reconciler/revision/reconcile_resources.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

@dprotaso
address PR feedback
5abda16
@nader-ziada

nader-ziada commented Nov 3, 2025

Copy link
Copy Markdown
Member

/lgtm

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@knative-prow knative-prow Bot added the lgtm Indicates that a PR is ready to be merged. label Nov 3, 2025
@knative-prow
knative-prow Bot merged commit 7c31784 into knative:main Nov 4, 2025
@dprotaso
dprotaso deleted the manual-scale branch November 27, 2025 18:32
@dprotaso dprotaso mentioned this pull request Mar 31, 2026
Support Stop/Resume of KNative Services #16489
Closed
@lsergio lsergio mentioned this pull request Sep 23, 2026
Revision spuriously marked "Initial scale was never achieved" seconds after creation (since 1.21) #16694
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@dsimansk dsimansk Awaiting requested review from dsimansk
@skonto skonto Awaiting requested review from skonto
2 more reviewers
@linkvt linkvt linkvt left review comments
@nader-ziada nader-ziada nader-ziada left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@linkvt linkvt

@nader-ziada nader-ziada

@Fedosin Fedosin

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Milestone

v1.21.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@dprotaso @nader-ziada @linkvt @Fedosin
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.