unknown flag: --leader-elect
, all leader-elect flags are unknown since 1.32.0
#7668
Labels
unknown flag: --leader-elect
, all leader-elect flags are unknown since 1.32.0
#7668
Which component are you using?:
/area cluster-autoscaler
What version of the component are you using?:
Component version:
1.32.0
What k8s version are you using (
kubectl version
)?:kubectl version
OutputWhat environment is this in?:
AWS but not with EKS just EC2 and self-managed k8s.
What did you expect to happen?:
When upgrading the cluster-autoscaler from 1.31.0 to 1.32.0 the
--leader-elect
flag would still exists.What happened instead?:
The cluster-autoscaler crashed saying the
--leader-elect
flag is unknown:How to reproduce it (as minimally and precisely as possible):
Start the cluster-autoscaler version 1.32.0+ and set any of the following flags:
Anything else we need to know?:
This bug is likely the result of c382519.
In the main func since above commit,
kube_flag.InitFlags()
is called beforecomponentopts.BindLeaderElectionFlags(&leaderElection, pflag.CommandLine)
. When I check out the repository and callkube_flag.InitFlags()
aftercomponentopts.BindLeaderElectionFlags(&leaderElection, pflag.CommandLine)
like before the above commit, then runninggo run main.go --help
shows the flags again.The text was updated successfully, but these errors were encountered: