Closed snebel29 closed 1 year ago
Hi, If I spend my time looking to propose a fix to this issue, and assuming the code is good, would it be reviewed and merged?
Thank in advance.
I have created https://github.com/kubernetes/kubernetes/pull/112405 with a fix for this which is awaiting for review, feedback is welcomed.
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.
This bot triages issues and PRs according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/lifecycle rotten
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages issues and PRs according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle rotten
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/reopen
/remove-lifecycle rotten
Please send feedback to sig-contributor-experience at kubernetes/community.
/close not-planned
@k8s-triage-robot: Closing this issue, marking it as "Not Planned".
Hi, Poking around with
app.NewCloudControllerManagerCommand
I noticedadditionalFlags
argument does not seems to be working as I would expect, while the flag is parsed it is not show in the usage or help.When an additional flagSet is passed it is parsed, and can be used however it is not shown in the usage or help of the command.
To reproduce, use the following snippet of code:
The flag is not shown in the help with the existing cloud controller manager flags, the following command return no results.
While the flag has been really bound and parsed and can In fact be used.
It does feel either a bug or an unimplemented feature, while the additional flags are successfully bound in https://github.com/kubernetes/cloud-provider/blob/9c22fcdc5eab5b9e62f9bdf5dbca07bcbdf6fab5/app/controllermanager.go#L123
The problem seems to be in the the use
namedFlagSets
which does not contain the additional flags to print he usage and help sections https://github.com/kubernetes/cloud-provider/blob/9c22fcdc5eab5b9e62f9bdf5dbca07bcbdf6fab5/app/controllermanager.go#L130https://github.com/kubernetes/cloud-provider/blob/9c22fcdc5eab5b9e62f9bdf5dbca07bcbdf6fab5/app/controllermanager.go#L135
I wouldn't mind having a closer look and propose a fix if one would be accepted, I just wanted to share and get feedback first to ensure this make sense.
Cheers.