Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert https://github.com/kubernetes/autoscaler/pull/7233 #7759

Closed
wants to merge 2 commits into from

Conversation

x13n
Copy link
Member

@x13n x13n commented Jan 23, 2025

#7233 broke --leader-elect flag by introducing --lease-resource-name that is redundant with --leader-elect-resource-name

What type of PR is this?

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #7668

Special notes for your reviewer:

Does this PR introduce a user-facing change?

Bugfix: --leader-elect flags can be specified again. Removed --lease-resource-name flag that was redundant with --leader-elect-resource-name.

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


#7233 broke `--leader-elect` flag by introducing `--lease-resource-name` that is redundant with `--leader-elect-resource-name`
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. area/cluster-autoscaler labels Jan 23, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: x13n

The full list of commands accepted by this bot can be found here.

The pull request process is described here

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 approved Indicates a PR has been approved by an approver from all required OWNERS files. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jan 23, 2025
@idebeijer
Copy link
Contributor

Hi @x13n, I don't think this will fix #7668 as kube_flag.InitFlags() is still called before componentopts.BindLeaderElectionFlags(&leaderElection, pflag.CommandLine).

@idebeijer
Copy link
Contributor

I quickly ran it locally, componentopts.BindLeaderElectionFlags() has to be called before kube_flag.InitFlags() in which the parsing of the flags happens. With #7233 reverted that should now be possible again, right?

I pushed the fix to PR #7761 for convenience but I'll close it if you add the fix to this PR.

@x13n
Copy link
Member Author

x13n commented Jan 24, 2025

Ah, you're right, of course. Let's merge your PR.

/close

@k8s-ci-robot
Copy link
Contributor

@x13n: Closed this PR.

In response to this:

Ah, you're right, of course. Let's merge your PR.

/close

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 cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

unknown flag: --leader-elect, all leader-elect flags are unknown since 1.32.0
3 participants