kubecolor icon indicating copy to clipboard operation
kubecolor copied to clipboard

Better color schema

Open hidetatz opened this issue 3 years ago • 3 comments

While I believe kubecolor colorizes the kubectl output nicely, I don't think current implementation is best. The better color schema might be found in the future.

Now, there are a lot of color schema change requests:

https://github.com/hidetatz/kubecolor/issues/110 https://github.com/hidetatz/kubecolor/issues/102 https://github.com/hidetatz/kubecolor/issues/91 https://github.com/hidetatz/kubecolor/issues/89 https://github.com/hidetatz/kubecolor/issues/88 https://github.com/hidetatz/kubecolor/issues/77 https://github.com/hidetatz/kubecolor/issues/76

It will be possible to implement all the things, but I'm concerned the kubecolor will be not very simple and not easy to use. In the first place, this kind of thing is completely personal preference.

In my opinion, we have to options:

  • Keep it simple. No color customization ability in kubecolor. If you don't like it's color schema, you can fork and change it.
  • Make kubecolor configurable. Imagine vim's syntax highlighting configuration. The configuration file will look like this:
# ~/.config/kubecolor/schema.yml
dark: true
color:
  get:
    base_color: blue
    warn_color: red
    highlight_crush_loop_backoff: true
...

Two things on the second option:

  • Will we really want to write this file?
  • What's the format of the file?

I don't want to make kubecolor too complicated, I want to keep it simple as much as possible. However, the really useful feature should be builtin without configuration file. I want to gather the opinion.

hidetatz avatar Dec 31 '22 06:12 hidetatz

Great, now we are talking 😊

Maybe we could start by the 'why' we (would) use this promising tool. For now I don't.

My 'why' : highlight resources problems with colors.

And I believe it is the case for more than half the issues gathered.

So for me, the minimum would be to differentiate bad/transitioning/good state of each field, whatever the color, but preferably conventional (red/yellow/green).

bcouetil avatar Dec 31 '22 08:12 bcouetil

Most important: Would be useful to have colored indication of a resource state: STATUS, READY and RESTARTS to see problems easily.

Other than that might be useful to specify custom color by their NAMESPACE and NAME using e.g. a pattern. So e.g. different color for services, logging, monitoring, DB ...

AndreSchulz-IONOS avatar Mar 13 '23 10:03 AndreSchulz-IONOS

It'd be better if this program can use/get/inherit colors from neovim's colorscheme?

I have lua colorscheme and want it also in this program instead of current hardcoded colors.

tmpm697 avatar Jul 24 '23 11:07 tmpm697