-
Notifications
You must be signed in to change notification settings - Fork 40k
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
--no-header available now for custom-column #26696
--no-header available now for custom-column #26696
Conversation
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
2 similar comments
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
ok to test |
90ba785
to
aa81489
Compare
@Gitfred thanks for submitting the fix, although this needs to wait until after the 1.3 code freeze ends. |
aa81489
to
0810b94
Compare
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
2 similar comments
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
@@ -32,7 +32,7 @@ import ( | |||
func AddPrinterFlags(cmd *cobra.Command) { | |||
cmd.Flags().StringP("output", "o", "", "Output format. One of: json|yaml|wide|name|go-template=...|go-template-file=...|jsonpath=...|jsonpath-file=... See golang template [http://golang.org/pkg/text/template/#pkg-overview] and jsonpath template [http://releases.k8s.io/HEAD/docs/user-guide/jsonpath.md].") | |||
cmd.Flags().String("output-version", "", "Output the formatted object with the given group version (for ex: 'extensions/v1beta1').") | |||
cmd.Flags().Bool("no-headers", false, "When using the default output, don't print headers.") | |||
cmd.Flags().Bool("no-headers", false, "When using the default output (except for custom-column), don't print headers.") |
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.
Why except for custom-column? Isn't it supported in this PR?
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.
the sentence says "no-header works only for default output". Custom-column is not default so I put "except for custom-column" there :) I see it is not so readable as I thought. Any ideas how to improve it?
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
0810b94
to
54facd2
Compare
@janetkuo updated. |
54facd2
to
044fe6d
Compare
@@ -52,7 +52,7 @@ func AddOutputFlags(cmd *cobra.Command) { | |||
|
|||
// AddNoHeadersFlags adds no-headers flags to a command. | |||
func AddNoHeadersFlags(cmd *cobra.Command) { | |||
cmd.Flags().Bool("no-headers", false, "When using the default output, don't print headers.") | |||
cmd.Flags().Bool("no-headers", false, "When using the default output, don't print headers (except for not default custom-column, it also works then).") |
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.
How about When using the default or custom-column output format, don't print headers.
I made a few more comments. |
044fe6d
to
19434e1
Compare
LGTM now. Thanks much @Gitfred! |
looks good to me 👍 |
GCE e2e build/test passed for commit 19434e1. |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e build/test passed for commit 19434e1. |
Automatic merge from submit-queue |
Change
CustomColumnsPrinter
to havenoHeader
boolean, also changedGetPrinter
to receive this bool and pass it through.One test
TestNewColumnPrinterFromSpecWithNoHeaders
added for checking if there is no headers in output for surefixes #24133