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

Add option to shorten node names #38

Open
TomKeur opened this issue Apr 18, 2023 · 0 comments
Open

Add option to shorten node names #38

TomKeur opened this issue Apr 18, 2023 · 0 comments

Comments

@TomKeur
Copy link

TomKeur commented Apr 18, 2023

On some of the Kubernetes clusters I'm working the node names have really long names for example:

foo-01337-foobarinclongname-prd-controlplane.k8s.isp.tld

When I'm opening ktop I really need to make my Terminal window small to see: CPU and MEMORY columns in the Pods overview, because the of the long node names.

Maybe the simplest option is to add an flag --truncate nodenames, because I don't see a configuration file.
But when adding such a flag I think it needs to be "smart", for example:

  • foo-01337-foobarinclongname-prd-controlplane1.k8s.isp.tld
  • foo-01337-foobarinclongname-prd-controlplane2.k8s.isp.tld
  • foo-01337-foobarinclongname-prd-controlplane3.k8s.isp.tld

When I'm seeing, 3 times: foo-01337-foobarinc it's not useful, but that can also be the other way around for example:

  • foo-01337-foobarinclongname-prd-controlplane.k8s.isp.tld
  • foo-01338-foobarinclongname-prd-controlplane.k8s.isp.tld
  • foo-01339-foobarinclongname-prd-controlplane.k8s.isp.tld

Displaying prd-controlplane.k8s.isp.tld is not useful as well.

Unfortunately I can't share a screenshot, but if you need more information let me know!
Keep up the good work :).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants