-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 not working as per docs #1233
Comments
@heydonovan Did you change your env to use XDG as specified in the release notes? I think your views should change once the configurations are pulled from the correct place? |
@derailed How does one change their env to use XDG? I've uninstalled k9s and re-installed it as I would assume that would use whatever settings it needs to use. From their docs:
I do not have that set, so it should default to
|
@heydonovan If XDG_CONFIG_HOME is left unset it will use the default dir per your OS as specified Here. So in your instance if you want to keep your config dir you can set XDG_CONFIG_HOME=$HOME/.config. Does this make sense? |
@derailed Ahh, I read different documentation. I didn't know it would be I've tried that as well, but that doesn't work either:
|
@heydonovan Hum... Rats! Assuming you're on a mac... Let's try $HOME/Library/Preferences/k9s/views.yml. Also you can turn on k9s debug logs and see where/if the configs are getting loaded. Hope this helps if not I am in denial and have a bug ;( |
@derailed That was it! That's the correct location :) Now that we can set custom columns, can we configure a column to derive its value from a node spec? For example, if I wanted to show
|
Oh, yes, I want that too! This would be specially interesting in the case of custom resource views. |
@heydonovan Going to close this. Cust cols is a separate feature described in #605 |
Hi Team! I'm following the instructions here:
https://github.com/derailed/k9s#resource-custom-columns
And I've a couple questions as I'm unable to get any sort of custom columns working. What is
$XDG_CONFIG_HOME
? Is that supposed to be$HOME
? I've created~/.k9s/views.yml
and tried renaming it to~/.k9s/views_config.yml
, but neither filename have any sort of effect.If I'm able to get this working, my goal is to update the nodes view to break out certain labels into their own columns for easier debugging (which nodes are cpu/io bound, ami labels, docker versions, etc).
Edit: I've read the release notes and looks like we switched to
$XDG_CONFIG_HOME
. As I don't have it set, the docs say it will default to$HOME/.config
. I've added a k9s directory there, and moved the files there as well, but no effect.The text was updated successfully, but these errors were encountered: