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

Custom columns labels #605

Open
igoooor opened this issue Mar 6, 2020 · 6 comments
Open

Custom columns labels #605

igoooor opened this issue Mar 6, 2020 · 6 comments
Labels
enhancement New feature or request

Comments

@igoooor
Copy link

igoooor commented Mar 6, 2020




Is your feature request related to a problem? Please describe.
No

Describe the solution you'd like
Now that we have custom columns, it would be great to be able to define as a column, a specifc label, for example:

k9s:
  views:
    v1/pods:
      columns:
        - NAME
        - LABELS[app]
@derailed derailed added the enhancement New feature or request label Mar 6, 2020
@mo-elsherif
Copy link

would be also nice to add here a general path to the pod, i.e not only a label, but an annotation as well

@eytanhanig
Copy link

This issue is in 5th place for 👍 votes. Any updates on when this feature might be released?

@arthurk
Copy link

arthurk commented Mar 7, 2024

This would be great to have. My use case is that I want to show the topology.kubernetes.io/zone label as a column for the nodes view. The wide-column view doesn't work since my nodes have too many labels and they get truncated.

@Elidrake
Copy link

Would absolutely love this; my usage would be to load in the NodeGroup label alongside the Node name for an EKS environment.

@Raj-prateek
Copy link

Any updates on this ?

crossRT added a commit to crossRT/k9s that referenced this issue Nov 29, 2024
@Skaronator
Copy link

I believe it would be ideal to adopt the same syntax as kubectl. This would involve having the header followed by the data selector, with both separated by a colon, as shown below:

kubectl get nodes -o custom-columns="NAME:.metadata.name,ZONE:.metadata.labels.topology\.kubernetes\.io/zone"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

8 participants