Skip to content

Add feature flag pod-is-always-schedulable#16146

Merged
knative-prow[bot] merged 2 commits intoknative:mainfrom
SaschaSchwarze0:sascha-treat-pod-as-always-schedulable
Jan 21, 2026
Merged

Add feature flag pod-is-always-schedulable#16146
knative-prow[bot] merged 2 commits intoknative:mainfrom
SaschaSchwarze0:sascha-treat-pod-as-always-schedulable

Conversation

@SaschaSchwarze0
Copy link
Contributor

@SaschaSchwarze0 SaschaSchwarze0 commented Oct 14, 2025

Same as #15397 I had missed that that one was auto-closed.

The feature flag allows to declare that Pods in the system will eventually all get scheduled and Revisions should therefore not be marked unschedulable

Fixes #14862

Proposed Changes

Unfortunately, I never got feedback in above issue, so trying with a PR now:

  • New feature pod-is-always-schedulable is added with default false.
  • If set to true, the revision reconciler will skip the check whether a pod is not scheduled and therefore never mark a revision as unschedulable.

EDIT: there was some feedback in the issue in the meantime and it has since then also been auto-closed. @dprotaso @skonto you were involved in a few discussions there, but without real outcome. Appreciate clear feedback whether we can take this forward or not.

Release Note

You can now set the new feature `pod-is-always-schedulable` to `true` in the config-deployment ConfigMap. As a result, Knative will not mark revisions as Unschedulable when a Pod is not scheduled. This makes sense if you want to omit this transient state in clusters that have cluster-autoscaling set up, and you can guarantee that all Pods will be eventually scheduled.

@knative-prow
Copy link

knative-prow bot commented Oct 14, 2025

Hi @SaschaSchwarze0. Thanks for your PR.

I'm waiting for a github.com member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions 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.

@knative-prow knative-prow bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Oct 14, 2025
@knative-prow knative-prow bot requested review from dprotaso and skonto October 14, 2025 07:43
@codecov
Copy link

codecov bot commented Oct 14, 2025

Codecov Report

❌ Patch coverage is 90.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 80.18%. Comparing base (9786b60) to head (9eac88a).
⚠️ Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
pkg/reconciler/revision/config/store.go 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #16146      +/-   ##
==========================================
+ Coverage   80.16%   80.18%   +0.02%     
==========================================
  Files         216      216              
  Lines       13435    13440       +5     
==========================================
+ Hits        10770    10777       +7     
- Misses       2298     2300       +2     
+ Partials      367      363       -4     

☔ 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.

@knative-prow-robot knative-prow-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 4, 2025
Copy link
Member

@dprotaso dprotaso left a comment

Choose a reason for hiding this comment

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

@SaschaSchwarze0 just some minor stuff.

Let's bring this change in and revisit whether we want to make any tweaks to this in the future.

Also To confirm we're still bound by the revision's progress deadline?

@dprotaso
Copy link
Member

@SaschaSchwarze0 let me know if you're still following up with this

@SaschaSchwarze0 SaschaSchwarze0 force-pushed the sascha-treat-pod-as-always-schedulable branch from fa8dbd5 to 3d345eb Compare January 21, 2026 08:49
@knative-prow-robot knative-prow-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 21, 2026
@SaschaSchwarze0 SaschaSchwarze0 force-pushed the sascha-treat-pod-as-always-schedulable branch from 3d345eb to f8cc69c Compare January 21, 2026 08:49
The feature flag allows to declare that Pods in the system will eventually all get scheduled and Revisions should therefore not be marked unschedulable

Signed-off-by: Sascha Schwarze <schwarzs@de.ibm.com>
@SaschaSchwarze0 SaschaSchwarze0 force-pushed the sascha-treat-pod-as-always-schedulable branch from f8cc69c to 9061ee5 Compare January 21, 2026 08:52
@SaschaSchwarze0 SaschaSchwarze0 changed the title Add feature flag treat-pod-as-always-schedulable Add feature flag pod-is-always-schedulable Jan 21, 2026
@SaschaSchwarze0
Copy link
Contributor Author

@SaschaSchwarze0 let me know if you're still following up with this

Done, thanks for pinging.

@dprotaso
Copy link
Member

/ok-to-test

@knative-prow knative-prow bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jan 21, 2026
@dprotaso
Copy link
Member

I pushed minor change tweaking the test helper funcs

otherwise

/lgtm
/approve

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Jan 21, 2026
@knative-prow
Copy link

knative-prow bot commented Jan 21, 2026

[APPROVALNOTIFIER] This PR is APPROVED

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

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:

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

@knative-prow knative-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 21, 2026
@knative-prow knative-prow bot merged commit 36ccae0 into knative:main Jan 21, 2026
91 checks passed
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. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provide configuration option for revisions becoming Unschedulable

3 participants