-
Notifications
You must be signed in to change notification settings - Fork 39.9k
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
kube-apiserver: output flags in logical sections #64517
kube-apiserver: output flags in logical sections #64517
Conversation
sttts
commented
May 30, 2018
•
edited
Loading
edited
// AddFlags adds flags for a specific APIServer to the specified FlagSet | ||
func (s *ServerRunOptions) AddFlags(fs *pflag.FlagSet) { | ||
// Flags returns flags for a specific APIServer by section name | ||
func (s *ServerRunOptions) Flags() (fss map[string]*pflag.FlagSet) { |
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.
redundant fss
LGTM, it works fine. The flags help info are well grouped instead of in alphabetical order.
|
It's a bit ugly that we cannot pass a uniform indention to cobra for all sections. Actually, I like the indention with the newline best:
This indention is only chosen implicitly by cobra if there is really not enough space. We would need to contribute something upstream to get this feature under control. |
cc48ea7
to
d63901e
Compare
Fixed the order. Enforcing the "newline mode" now via a fake zzzzzzz flag. |
d63901e
to
4b7016e
Compare
4b7016e
to
4aeef27
Compare
4aeef27
to
efc48e9
Compare
/retest Review the full test history for this PR. Silence the bot with an |
15 similar comments
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
New changes are detected. LGTM label has been removed. |
45d0b0a
to
42d533e
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sttts, yue9944882 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 |
/test all [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here. |