Skip to content

When pod listing, filter out unschedulable and scheduler unprocessed pods not in the list of allowed schedulers#8869

Merged
k8s-ci-robot merged 1 commit intokubernetes:masterfrom
damikag:allowed-schedulers
Feb 3, 2026
Merged

When pod listing, filter out unschedulable and scheduler unprocessed pods not in the list of allowed schedulers#8869
k8s-ci-robot merged 1 commit intokubernetes:masterfrom
damikag:allowed-schedulers

Conversation

@damikag
Copy link
Copy Markdown
Member

@damikag damikag commented Nov 28, 2025

When pod listing, filter out unschedulable and scheduler unprocessed pods not in the list of allowed schedulers.

What type of PR is this?

/kind feature

What this PR does / why we need it:

This PR introduces new command line flag where a list of schedulers can be specified. If specified, cluster autoscaler will filter out pods not belong to those schedulers at the very beginning of the CA loop.

This feature is useful for customs CA configurations where CA does not intends to help pods targeting some custom schedulers. Specially in large clusters when there are thousands of unschedulbale pods which are not intended for CA, it adds unnecessary extra overheads and could affect CA decision making. This flag can be used as a mitigation for such cases.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?

The flag should be set to empty for general release. This flag should only be used for specific clusters which have any such needs or as a mitigation tool if applicable.

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/feature Categorizes issue or PR as related to a new feature. do-not-merge/needs-area Indicates that a PR should not merge because it lacks an area label. area/cluster-autoscaler Issues or PRs related to the Cluster Autoscaler component and removed do-not-merge/needs-area Indicates that a PR should not merge because it lacks an area label. labels Nov 28, 2025
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Nov 28, 2025
@k8s-ci-robot k8s-ci-robot added area/helm-charts area/provider/alicloud Issues or PRs related to the AliCloud cloud provider implementation area/provider/aws Issues or PRs related to aws provider area/provider/azure Issues or PRs related to azure provider area/provider/cluster-api Issues or PRs related to Cluster API provider area/provider/coreweave area/provider/gce size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. area/provider/hetzner Issues or PRs related to Hetzner provider area/provider/magnum Issues or PRs related to the Magnum cloud provider for Cluster Autoscaler area/provider/oci Issues or PRs related to oci provider area/provider/rancher area/vertical-pod-autoscaler Issues or PRs related to the Vertical Pod Autoscaler component kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Feb 3, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

k8s-ci-robot commented Feb 3, 2026

@damikag: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-autoscaling-e2e-vpa-recommender 6b8471c link true /test pull-autoscaling-e2e-vpa-recommender
pull-autoscaling-e2e-vpa-admission-controller 6b8471c link true /test pull-autoscaling-e2e-vpa-admission-controller
pull-autoscaling-e2e-vpa-updater 6b8471c link true /test pull-autoscaling-e2e-vpa-updater
pull-autoscaling-e2e-vpa-actuation 6b8471c link true /test pull-autoscaling-e2e-vpa-actuation
pull-autoscaling-e2e-vpa-full 6b8471c link true /test pull-autoscaling-e2e-vpa-full
pull-cluster-autoscaler-e2e-azure-master 6b8471c link false /test pull-cluster-autoscaler-e2e-azure-master

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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. I understand the commands that are listed here.

@damikag damikag force-pushed the allowed-schedulers branch from 6b8471c to 08b15bb Compare February 3, 2026 09:33
@k8s-ci-robot k8s-ci-robot removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Feb 3, 2026
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Feb 3, 2026
@k8s-triage-robot
Copy link
Copy Markdown

This PR may require API review.

If so, when the changes are ready, complete the pre-review checklist and request an API review.

Status of requested reviews is tracked in the API Review project.

1 similar comment
@k8s-triage-robot
Copy link
Copy Markdown

This PR may require API review.

If so, when the changes are ready, complete the pre-review checklist and request an API review.

Status of requested reviews is tracked in the API Review project.

@x13n
Copy link
Copy Markdown
Member

x13n commented Feb 3, 2026

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 3, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: damikag, x13n

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 3, 2026
@k8s-ci-robot k8s-ci-robot merged commit aa46f47 into kubernetes:master Feb 3, 2026
8 checks passed
@jackfrancis
Copy link
Copy Markdown
Contributor

/cherry-pick cluster-autoscaler-release-1.35

@k8s-infra-cherrypick-robot
Copy link
Copy Markdown

@jackfrancis: new pull request created: #9165

Details

In response to this:

/cherry-pick cluster-autoscaler-release-1.35

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.

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/cluster-autoscaler Issues or PRs related to the Cluster Autoscaler component area/helm-charts area/provider/alicloud Issues or PRs related to the AliCloud cloud provider implementation area/provider/aws Issues or PRs related to aws provider area/provider/azure Issues or PRs related to azure provider area/provider/cluster-api Issues or PRs related to Cluster API provider area/provider/coreweave area/provider/gce area/provider/hetzner Issues or PRs related to Hetzner provider area/provider/magnum Issues or PRs related to the Magnum cloud provider for Cluster Autoscaler area/provider/oci Issues or PRs related to oci provider area/provider/rancher area/vertical-pod-autoscaler Issues or PRs related to the Vertical Pod Autoscaler component cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. 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.

6 participants