Skip to content

Cluster autoscaler should remove unused "node-autoprovisioning-enabled" flag and the related metrics #6228

Open
@elmiko

Description

@elmiko

Which component are you using?:

cluster-autoscaler

What version of the component are you using?:

Component version: 1.28.0

What k8s version are you using (kubectl version)?:

1.28.2

What environment is this in?:

this affects all environments

What did you expect to happen?:

I expect the node-autoprovisioning-enabled flag to change the behavior of the cluster-autoscaler when it is set or unset.

What happened instead?:

Changing this flag has no effect as it is essentially a left over from an earlier version of the autoscaler.

How to reproduce it (as minimally and precisely as possible):

Run the autoscaler with --node-autoprovisioning-enabled and without, there is no change in the behavior of the autoscaler.

Anything else we need to know?:

This issue was discussed during the SIG meeting from 2023-10-23, and agree that removal is safe and the function is no longer in use.

The node autoprovisioning metrics should also be removed as part of this effort, see https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/metrics/metrics.go#L352-L375

/good-first-issue
/help

Metadata

Metadata

Assignees

Labels

area/cluster-autoscalerarea/core-autoscalerDenotes an issue that is related to the core autoscaler and is not specific to any provider.good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/bugCategorizes issue or PR as related to a bug.triage/acceptedIndicates an issue or PR is ready to be actively worked on.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions