Skip to content

Remove deprecated flag scale-down-enabled#9412

Merged
k8s-ci-robot merged 3 commits intokubernetes:masterfrom
YahiaBadr:master
Mar 31, 2026
Merged

Remove deprecated flag scale-down-enabled#9412
k8s-ci-robot merged 3 commits intokubernetes:masterfrom
YahiaBadr:master

Conversation

@YahiaBadr
Copy link
Copy Markdown
Contributor

What type of PR is this?

/kind cleanup
/kind deprecation

What this PR does / why we need it:

Cleanup the deprecated flag scale-down-enabled

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?

The deprecated flag scale-down-enabled is removed, passing it will break cluster-autoscaler

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/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. kind/deprecation Categorizes issue or PR as related to a feature/enhancement marked for deprecation. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/needs-area labels Mar 26, 2026
@k8s-ci-robot k8s-ci-robot requested review from elmiko and x13n March 26, 2026 12:29
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

Hi @YahiaBadr. Thanks for your PR.

I'm waiting for a kubernetes 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.

Tip

We noticed you've done this a few times! Consider joining the org to skip this step and gain /lgtm and other bot rights. We recommend asking approvers on your previous PRs to sponsor you.

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.

@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed do-not-merge/needs-area labels Mar 26, 2026
Copy link
Copy Markdown
Member

@x13n x13n left a comment

Choose a reason for hiding this comment

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

I see the flag was deprecated recently - while I agree we should remove it, what's the timeline? Won't both marking as deprecated and actual removal land in the same minor (1.36)?


if a.ScaleDownEnabled {
unneededStart := time.Now()
unneededStart := time.Now()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Since you're changing this anyway, could you factor out scale down logic to a separate function?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

@YahiaBadr
Copy link
Copy Markdown
Contributor Author

YahiaBadr commented Mar 27, 2026

@x13n The deprecation PR was created in January #9056 and was cherry picked to 1.35 #9060. I am not quite familiar with the deprecation policy, so please let me know if 2 months is not enough period alongside having deprecation in 1.35.

If we have to wait I can then close the PR and wait for more time before removing the flag entirely.

@x13n
Copy link
Copy Markdown
Member

x13n commented Mar 27, 2026

Ah, you're right, I see it was deprecated in CA 1.35.0. Removing now so it doesn't exist in 1.36.0 seems reasonable.

@x13n
Copy link
Copy Markdown
Member

x13n commented Mar 27, 2026

/ok-to-test
/assign

@k8s-ci-robot k8s-ci-robot 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 Mar 27, 2026
@x13n
Copy link
Copy Markdown
Member

x13n commented Mar 31, 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 Mar 31, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

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

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 Mar 31, 2026
@k8s-ci-robot k8s-ci-robot merged commit 75514c6 into kubernetes:master Mar 31, 2026
10 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. area/cluster-autoscaler 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. kind/deprecation Categorizes issue or PR as related to a feature/enhancement marked for deprecation. lgtm "Looks good to me", 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. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants