-
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
update wide option output #22772
update wide option output #22772
Conversation
@bgrant0607 ptal I just add a quick update. I think there are still some little problems:
|
Labelling this PR as size/L |
GCE e2e build/test passed for commit a8bd31e67589fbdc8d1e42f95d6c626fa122fdc7. |
The author of this PR is not in the whitelist for merge, can one of the admins add the 'ok-to-merge' label? |
@bgrant0607 would you mind reviewing this? |
@adohe Sorry! This was buried in my email. Please reference the associated issue in the PR description and cc @kubernetes/kubectl on kubectl PRs. |
cc @janetkuo |
@adohe Could you please paste example output into the PR? |
// Output: | ||
// NAME DESIRED CURRENT AGE CONTAINER(S) IMAGE(S) SELECTOR | ||
// foo 1 1 10y foo someimage foo=bar | ||
// foo2 someimage |
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.
What I want is:
// NAME DESIRED CURRENT AGE CONTAINER(S) IMAGE(S) SELECTOR
// foo 1 1 10y foo,foo2 someimage,someimage2 foo=bar
1 line
No spaces in comma-separated lists, so columns can be cut
.
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.
With columns aligned, of course. :-)
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.
We need to eliminate layoutOtherContainers
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.
Or rather convert it to layoutContainers
, and use it everywhere we print columns for container names and images.
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.
Ok I will fix it now.
@bgrant0607 I think this should be what we want:
|
a8bd31e
to
f2023d5
Compare
Yes, thanks! Please notify me once you've pushed the changes. |
Actually, I see them now. |
@@ -714,12 +697,12 @@ func printReplicationController(controller *api.ReplicationController, w io.Writ | |||
); err != nil { | |||
return err | |||
} | |||
|
|||
if err := layoutContainers(containers, w, options); err != nil { |
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.
This should only be in wide output?
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 all the resource types.
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.
I add a check inside this function, and according to our original code, we put this in wide output.
@adohe PTAL at my comments. Thanks! |
GCE e2e build/test passed for commit f2023d5cdfc5d11904da1a91f8e49233fc45e03c. |
f2023d5
to
9788101
Compare
In this PR, I don't change the |
Great! LGTM. Thanks much for doing this on short notice. |
Updated PR description |
@bgrant0607 Thanks very much. |
GCE e2e build/test passed for commit 9788101. |
Manually merging. |
update wide option output
update wide option output
update wide option output
Fixes #22742