-
Notifications
You must be signed in to change notification settings - Fork 829
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
Implement flags grouping for karmada-agent #1389
Conversation
The result is below
|
I'll look at it soon. Just a feeling that we might don't need so many changes. |
But the result is exactly what we needed. Thanks! |
Yes, The |
I am busy preparing the incoming release, I'm not sure I can get back to this PR this week. Just a reminder. |
There's no hurry. I am also working on other task #1367 this week. |
/assign I'm back to this issue now. |
Hi @lonelyCZ , I'm hesitant to copy more code from other projects, my concern is the code we lifted might become the technical debt and it's hard to sync bugfix from the original source. That's the reason why we are going to record these things at #1453. I'm not saying we can't lift code anymore, just more cautious. I tried to do similar things for
(The commands are still working but the information missing.) I'll continue investigating it further once I have time. |
Got it, I also research it later. |
Hi, @RainbowMango , Do we need to implement |
Yes, one PR one component is good. And I think this PR could be the next. |
Right, I have updated it. |
Could I submit a issue to list tasks for other components and invite people who are interested in this to participate? @RainbowMango |
Yeah! That's more professional. You can let this PR as an example. |
cmd/agent/app/agent.go
Outdated
// (https://github.com/kubernetes-sigs/controller-runtime/blob/v0.11.1/pkg/client/config/config.go#L39), | ||
// and update the flag usage. | ||
genericFlagSet.AddGoFlagSet(flag.CommandLine) | ||
genericFlagSet.Lookup("kubeconfig").Usage = "Path to karmada control plane kubeconfig file." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For karmada-agent
, no need to update the Usage
. This is different with karmada-controller-manager
.
For karmada-agent
--karmada-kubeconfig
--> point to karmada control plane.--kubeconfig
--> point to the cluster where runningkarmada-agent
Remove this line and the comments on above should be ok.
Signed-off-by: lonelyCZ <531187475@qq.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: RainbowMango 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 |
Signed-off-by: lonelyCZ 531187475@qq.com
What type of PR is this?
/kind feature
What this PR does / why we need it:
It make flags of command clearer.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
I'm not sure the place of
group.go
should be, and leave it here for the time being./cc @RainbowMango
Does this PR introduce a user-facing change?: