fix #590
parent
3297483f16
commit
a5106ec1d5
|
|
@ -70,7 +70,7 @@ func (Container) Header(ns string) Header {
|
|||
HeaderColumn{Name: "READY"},
|
||||
HeaderColumn{Name: "STATE"},
|
||||
HeaderColumn{Name: "INIT"},
|
||||
HeaderColumn{Name: "RESTART", Align: tview.AlignRight},
|
||||
HeaderColumn{Name: "RESTARTS", Align: tview.AlignRight},
|
||||
HeaderColumn{Name: "PROBES(L:R)"},
|
||||
HeaderColumn{Name: "CPU", Align: tview.AlignRight, MX: true},
|
||||
HeaderColumn{Name: "MEM", Align: tview.AlignRight, MX: true},
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ func (Pod) Header(ns string) Header {
|
|||
HeaderColumn{Name: "NAMESPACE"},
|
||||
HeaderColumn{Name: "NAME"},
|
||||
HeaderColumn{Name: "READY"},
|
||||
HeaderColumn{Name: "RESTART", Align: tview.AlignRight},
|
||||
HeaderColumn{Name: "RESTARTS", Align: tview.AlignRight},
|
||||
HeaderColumn{Name: "STATUS"},
|
||||
HeaderColumn{Name: "CPU", Align: tview.AlignRight, MX: true},
|
||||
HeaderColumn{Name: "MEM", Align: tview.AlignRight, MX: true},
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ func TestPodColorer(t *testing.T) {
|
|||
render.HeaderColumn{Name: "NAMESPACE"},
|
||||
render.HeaderColumn{Name: "NAME"},
|
||||
render.HeaderColumn{Name: "READY"},
|
||||
render.HeaderColumn{Name: "RESTART"},
|
||||
render.HeaderColumn{Name: "RESTARTS"},
|
||||
render.HeaderColumn{Name: "STATUS"},
|
||||
render.HeaderColumn{Name: "VALID"},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -51,6 +51,7 @@ func (c *Container) bindKeys(aa ui.KeyActions) {
|
|||
|
||||
aa.Add(ui.KeyActions{
|
||||
ui.KeyShiftF: ui.NewKeyAction("PortForward", c.portFwdCmd, true),
|
||||
ui.KeyShiftT: ui.NewKeyAction("Sort Restart", c.GetTable().SortColCmd("RESTARTS", false), false),
|
||||
ui.KeyShiftC: ui.NewKeyAction("Sort CPU", c.GetTable().SortColCmd(cpuCol, false), false),
|
||||
ui.KeyShiftM: ui.NewKeyAction("Sort MEM", c.GetTable().SortColCmd(memCol, false), false),
|
||||
ui.KeyShiftX: ui.NewKeyAction("Sort %CPU (REQ)", c.GetTable().SortColCmd("%CPU/R", false), false),
|
||||
|
|
|
|||
|
|
@ -13,5 +13,5 @@ func TestContainerNew(t *testing.T) {
|
|||
|
||||
assert.Nil(t, c.Init(makeCtx()))
|
||||
assert.Equal(t, "Containers", c.Name())
|
||||
assert.Equal(t, 15, len(c.Hints()))
|
||||
assert.Equal(t, 16, len(c.Hints()))
|
||||
}
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ func (p *Pod) bindKeys(aa ui.KeyActions) {
|
|||
|
||||
aa.Add(ui.KeyActions{
|
||||
ui.KeyShiftR: ui.NewKeyAction("Sort Ready", p.GetTable().SortColCmd(readyCol, true), false),
|
||||
ui.KeyShiftT: ui.NewKeyAction("Sort Restart", p.GetTable().SortColCmd("RESTART", false), false),
|
||||
ui.KeyShiftT: ui.NewKeyAction("Sort Restart", p.GetTable().SortColCmd("RESTARTS", false), false),
|
||||
ui.KeyShiftS: ui.NewKeyAction("Sort Status", p.GetTable().SortColCmd(statusCol, true), false),
|
||||
ui.KeyShiftC: ui.NewKeyAction("Sort CPU", p.GetTable().SortColCmd(cpuCol, false), false),
|
||||
ui.KeyShiftM: ui.NewKeyAction("Sort MEM", p.GetTable().SortColCmd(memCol, false), false),
|
||||
|
|
|
|||
Loading…
Reference in New Issue