mine
derailed 2019-10-23 13:15:22 -04:00
parent d752f9f62e
commit a55963606b
4 changed files with 12 additions and 6 deletions

View File

@ -378,6 +378,12 @@ roleRef:
You can style K9s based on your own sense of style and look. This is very much an experimental feature at this time, more will be added/modified if this feature has legs so thread accordingly! You can style K9s based on your own sense of style and look. This is very much an experimental feature at this time, more will be added/modified if this feature has legs so thread accordingly!
By default a K9s view displays resource information using the following coloring scheme:
1. Blue - All good.
1. Orange/Red - Represents a potential issue with the resource ie a pod is not in a running state.
1. Green - Indicates a row has changed. A change delta indicator indicates which column changed.
Skins are YAML files, that enable a user to change K9s presentation layer. K9s skins are loaded from `$HOME/.k9s/skin.yml`. If a skin file is detected then the skin would be loaded if not the current stock skin remains in effect. Skins are YAML files, that enable a user to change K9s presentation layer. K9s skins are loaded from `$HOME/.k9s/skin.yml`. If a skin file is detected then the skin would be loaded if not the current stock skin remains in effect.
Below is a sample skin file, more skins would be available in the skins directory, just simply copy any of these in your user's home dir as `skin.yml`. Below is a sample skin file, more skins would be available in the skins directory, just simply copy any of these in your user's home dir as `skin.yml`.

View File

@ -33,8 +33,8 @@ func (v *deployView) extraActions(aa ui.KeyActions) {
v.logResourceView.extraActions(aa) v.logResourceView.extraActions(aa)
v.scalableResourceView.extraActions(aa) v.scalableResourceView.extraActions(aa)
v.restartableResourceView.extraActions(aa) v.restartableResourceView.extraActions(aa)
aa[ui.KeyShiftD] = ui.NewKeyAction("Sort Desired", v.sortColCmd(2, false), false) aa[ui.KeyShiftD] = ui.NewKeyAction("Sort Desired", v.sortColCmd(1, false), false)
aa[ui.KeyShiftC] = ui.NewKeyAction("Sort Current", v.sortColCmd(3, false), false) aa[ui.KeyShiftC] = ui.NewKeyAction("Sort Current", v.sortColCmd(2, false), false)
} }
func (v *deployView) showPods(app *appView, _, res, sel string) { func (v *deployView) showPods(app *appView, _, res, sel string) {

View File

@ -28,8 +28,8 @@ func newDaemonSetView(title, gvr string, app *appView, list resource.List) resou
func (v *daemonSetView) extraActions(aa ui.KeyActions) { func (v *daemonSetView) extraActions(aa ui.KeyActions) {
v.logResourceView.extraActions(aa) v.logResourceView.extraActions(aa)
v.restartableResourceView.extraActions(aa) v.restartableResourceView.extraActions(aa)
aa[ui.KeyShiftD] = ui.NewKeyAction("Sort Desired", v.sortColCmd(2, false), false) aa[ui.KeyShiftD] = ui.NewKeyAction("Sort Desired", v.sortColCmd(1, false), false)
aa[ui.KeyShiftC] = ui.NewKeyAction("Sort Current", v.sortColCmd(3, false), false) aa[ui.KeyShiftC] = ui.NewKeyAction("Sort Current", v.sortColCmd(2, false), false)
} }
func (v *daemonSetView) showPods(app *appView, _, res, sel string) { func (v *daemonSetView) showPods(app *appView, _, res, sel string) {

View File

@ -32,8 +32,8 @@ func newReplicaSetView(title, gvr string, app *appView, list resource.List) reso
} }
func (v *replicaSetView) extraActions(aa ui.KeyActions) { func (v *replicaSetView) extraActions(aa ui.KeyActions) {
aa[ui.KeyShiftD] = ui.NewKeyAction("Sort Desired", v.sortColCmd(2, false), false) aa[ui.KeyShiftD] = ui.NewKeyAction("Sort Desired", v.sortColCmd(1, false), false)
aa[ui.KeyShiftC] = ui.NewKeyAction("Sort Current", v.sortColCmd(3, false), false) aa[ui.KeyShiftC] = ui.NewKeyAction("Sort Current", v.sortColCmd(2, false), false)
aa[tcell.KeyCtrlB] = ui.NewKeyAction("Rollback", v.rollbackCmd, true) aa[tcell.KeyCtrlB] = ui.NewKeyAction("Rollback", v.rollbackCmd, true)
} }