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

Show pod status more clearly (#1967) #2989

Merged
merged 1 commit into from
Jul 10, 2019

Conversation

jonathanbeber
Copy link
Contributor

@jonathanbeber jonathanbeber commented Jun 24, 2019

During operations with linkerd stat sometimes it's not clear the actual
pod status.

This commit introduces a method, to the k8spackage, getting the pod status,
based on kubectl logic
to expose the STATUS column for pods . Also, it changes the stat command
on the cli package adding a column when the resource type is a Pod.


Fixes #1967

@jonathanbeber jonathanbeber force-pushed the pod-status branch 3 times, most recently from de17e65 to a2351b2 Compare June 25, 2019 07:57
@grampelberg
Copy link
Contributor

Thank you! We'll get you a review shortly =)

Copy link
Member

@adleong adleong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great! The output of linkerd stat for pods is getting very wide, but it was pretty darn wide even before this change so I don't think that's a blocker here (though it's something we may want to revisit soon).

controller/api/public/stat_summary.go Outdated Show resolved Hide resolved
During operations with `linkerd stat` sometimes it's not clear the actual
pod status.

This commit introduces a method, to the `k8s`package, getting the pod status,
based on [`kubectl` logic](https://github.com/kubernetes/kubernetes/blob/33a3e325f754d179b25558dee116fca1c67d353a/pkg/printers/internalversion/printers.go#L558-L640)
to expose the `STATUS` column for pods . Also, it changes the stat command
on the` cli` package adding a column when the resource type is a Pod.

Fixes linkerd#1967

Signed-off-by: Jonathan Juares Beber <jonathanbeber@gmail.com>
Copy link
Member

@adleong adleong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⭐ very nice!

@adleong adleong merged commit 2dcbde0 into linkerd:master Jul 10, 2019
@jonathanbeber jonathanbeber deleted the pod-status branch July 10, 2019 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show pod status more clearly
3 participants