Skip to content

Remove deprecated TASProfileLeastFreeCapacity feature gate#9298

Open
kannon92 wants to merge 1 commit intokubernetes-sigs:mainfrom
kannon92:TASProfileLeastFreeCapacity-drop
Open

Remove deprecated TASProfileLeastFreeCapacity feature gate#9298
kannon92 wants to merge 1 commit intokubernetes-sigs:mainfrom
kannon92:TASProfileLeastFreeCapacity-drop

Conversation

@kannon92
Copy link
Contributor

@kannon92 kannon92 commented Feb 16, 2026

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

Removes the deprecated TASProfileLeastFreeCapacity feature gate and all its references across the codebase.

TASProfileLeastFreeCapacity was introduced in v0.10 (Alpha) and deprecated in v0.11. It enabled LeastFreeCapacity scheduling for all TAS topology request types (required, preferred, unconstrained). It has been superseded by TASProfileMixed, which uses LeastFreeCapacity only for unconstrained requests and BestFit for required/preferred — the recommended behavior.

Changes:

  • Remove the feature gate constant and versioned spec from pkg/features/kube_features.go
  • Simplify useLeastFreeCapacityAlgorithm() in pkg/cache/scheduler/tas_flavor_snapshot.go to only check TASProfileMixed
  • Simplify ValidateFeatureGates() in pkg/config/validation.go — the multi-profile conflict check is no longer needed
  • Remove 18 test cases in pkg/cache/scheduler/tas_cache_test.go that exercised TASProfileLeastFreeCapacity behavior
  • Update validation tests in pkg/config/validation_test.go
  • Remove entries from feature gate YAML reference files
  • Remove from KEP feature-gates list and algorithm selection tables

Which issue(s) this PR fixes:

Part of #8855

Special notes for your reviewer:

Unconstrained LeastFreeCapacity behavior continues to be tested via existing TASProfileMixed test cases.

Does this PR introduce a user-facing change?

Remove the deprecated TASProfileLeastFreeCapacity feature gate. Users should use TASProfileMixed instead, which applies LeastFreeCapacity for unconstrained requests and BestFit for required/preferred.

@k8s-ci-robot k8s-ci-robot added kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. release-note Denotes a PR that will be considered when it comes time to generate release notes. labels Feb 16, 2026
@netlify
Copy link

netlify bot commented Feb 16, 2026

Deploy Preview for kubernetes-sigs-kueue canceled.

Name Link
🔨 Latest commit a3dee47
🔍 Latest deploy log https://app.netlify.com/projects/kubernetes-sigs-kueue/deploys/69938650e277f40008a94082

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: kannon92
Once this PR has been reviewed and has the lgtm label, please assign gabesaba, pbundyra for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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 size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Feb 16, 2026
@kannon92 kannon92 force-pushed the TASProfileLeastFreeCapacity-drop branch from 5b44a74 to 97437a4 Compare February 16, 2026 20:39
@kannon92 kannon92 changed the title Remove deprecated TASProfileLeastFreeCapacity feature gate WIP: Remove deprecated TASProfileLeastFreeCapacity feature gate Feb 16, 2026
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 16, 2026
@kannon92 kannon92 force-pushed the TASProfileLeastFreeCapacity-drop branch from 97437a4 to 60434a6 Compare February 16, 2026 20:58
The TASProfileLeastFreeCapacity feature gate was deprecated in v0.11,
superseded by TASProfileMixed which uses LeastFreeCapacity only for
unconstrained requests and BestFit for required/preferred. This removes
the gate, simplifies validation logic, and drops all associated tests.
@kannon92 kannon92 force-pushed the TASProfileLeastFreeCapacity-drop branch from 60434a6 to a3dee47 Compare February 16, 2026 21:04
@kannon92 kannon92 changed the title WIP: Remove deprecated TASProfileLeastFreeCapacity feature gate Remove deprecated TASProfileLeastFreeCapacity feature gate Feb 16, 2026
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants