Skip to content
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

Merged
merged 1 commit into from
Jul 11, 2016

Conversation

sylwekb
Copy link
Contributor

@sylwekb sylwekb commented Jun 2, 2016

Change CustomColumnsPrinter to have noHeader boolean, also changed GetPrinter to receive this bool and pass it through.
One test TestNewColumnPrinterFromSpecWithNoHeaders added for checking if there is no headers in output for sure

fixes #24133

@k8s-bot
Copy link

k8s-bot commented Jun 2, 2016

Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test".
(Note: "add to whitelist" is no longer supported. Please update configurations in kubernetes/test-infra/jenkins/job-configs/kubernetes-jenkins-pull instead.)

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
@k8s-bot
Copy link

k8s-bot commented Jun 2, 2016

Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test".
(Note: "add to whitelist" is no longer supported. Please update configurations in kubernetes/test-infra/jenkins/job-configs/kubernetes-jenkins-pull instead.)

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.

@k8s-bot
Copy link

k8s-bot commented Jun 2, 2016

Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test".
(Note: "add to whitelist" is no longer supported. Please update configurations in kubernetes/test-infra/jenkins/job-configs/kubernetes-jenkins-pull instead.)

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.

@k8s-github-robot k8s-github-robot added kind/old-docs size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jun 2, 2016
@thockin thockin assigned janetkuo and unassigned thockin Jun 2, 2016
@janetkuo
Copy link
Member

janetkuo commented Jun 3, 2016

ok to test

@sylwekb sylwekb force-pushed the no-header-custom-column branch from 90ba785 to aa81489 Compare June 3, 2016 08:59
@janetkuo
Copy link
Member

janetkuo commented Jun 8, 2016

@Gitfred thanks for submitting the fix, although this needs to wait until after the 1.3 code freeze ends.

@k8s-github-robot k8s-github-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 10, 2016
@sylwekb sylwekb force-pushed the no-header-custom-column branch from aa81489 to 0810b94 Compare June 10, 2016 07:49
@k8s-github-robot k8s-github-robot removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. kind/old-docs labels Jun 10, 2016
@k8s-bot
Copy link

k8s-bot commented Jun 14, 2016

Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test".
(Note: "add to whitelist" is no longer supported. Please update configurations in kubernetes/test-infra/jenkins/job-configs/kubernetes-jenkins-pull instead.)

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
@k8s-bot
Copy link

k8s-bot commented Jun 15, 2016

Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test".
(Note: "add to whitelist" is no longer supported. Please update configurations in kubernetes/test-infra/jenkins/job-configs/kubernetes-jenkins-pull instead.)

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.

@k8s-bot
Copy link

k8s-bot commented Jun 23, 2016

Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test".
(Note: "add to whitelist" is no longer supported. Please update configurations in kubernetes/test-infra/jenkins/job-configs/kubernetes-jenkins-pull instead.)

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.")
Copy link
Member

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?

Copy link
Contributor Author

@sylwekb sylwekb Jun 27, 2016

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?

@k8s-bot
Copy link

k8s-bot commented Jun 25, 2016

Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test".
(Note: "add to whitelist" is no longer supported. Please update configurations in kubernetes/test-infra/jenkins/job-configs/kubernetes-jenkins-pull instead.)

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.

@sylwekb sylwekb force-pushed the no-header-custom-column branch from 0810b94 to 54facd2 Compare June 27, 2016 13:18
@sylwekb
Copy link
Contributor Author

sylwekb commented Jun 27, 2016

@janetkuo updated.

@k8s-github-robot k8s-github-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 5, 2016
@sylwekb sylwekb force-pushed the no-header-custom-column branch from 54facd2 to 044fe6d Compare July 6, 2016 06:54
@k8s-github-robot k8s-github-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 6, 2016
@@ -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).")
Copy link
Member

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.

@janetkuo janetkuo added release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed release-note-label-needed labels Jul 7, 2016
@janetkuo
Copy link
Member

janetkuo commented Jul 7, 2016

I made a few more comments.

@sylwekb sylwekb force-pushed the no-header-custom-column branch from 044fe6d to 19434e1 Compare July 7, 2016 08:04
@janetkuo janetkuo added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 7, 2016
@janetkuo
Copy link
Member

janetkuo commented Jul 7, 2016

LGTM now. Thanks much @Gitfred!

@janetkuo
Copy link
Member

janetkuo commented Jul 7, 2016

@k8s-bot e2e test this issue: #26760

@wojtek-t
Copy link
Member

wojtek-t commented Jul 8, 2016

@k8s-bot e2e test this please, issue: #27462

@dims
Copy link
Member

dims commented Jul 8, 2016

looks good to me 👍

@janetkuo
Copy link
Member

janetkuo commented Jul 11, 2016

@k8s-bot node e2e test this issue: #28683

@k8s-bot
Copy link

k8s-bot commented Jul 11, 2016

GCE e2e build/test passed for commit 19434e1.

@k8s-github-robot
Copy link

@k8s-bot test this [submit-queue is verifying that this PR is safe to merge]

@k8s-bot
Copy link

k8s-bot commented Jul 11, 2016

GCE e2e build/test passed for commit 19434e1.

@k8s-github-robot
Copy link

Automatic merge from submit-queue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

kubectl cannot set --no-headers with --outputs
8 participants