From ce1a7bc07025b058772328513cef0e194f886f0a Mon Sep 17 00:00:00 2001 From: Carlo Wouters Date: Mon, 3 Jun 2019 12:20:19 +0200 Subject: [PATCH 1/2] fix for issue #206: correct status for probes --- internal/resource/container.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/resource/container.go b/internal/resource/container.go index ae6eba95..1572ee5d 100644 --- a/internal/resource/container.go +++ b/internal/resource/container.go @@ -287,9 +287,9 @@ func toRes(r v1.ResourceList) (string, string) { func probe(p *v1.Probe) string { if p == nil { - return "on" + return "off" } - return "off" + return "on" } func asMi(v int64) float64 { From bc05e22e67d9d1f876bbbbdb4bd7a884a4191cd6 Mon Sep 17 00:00:00 2001 From: Tomer Froumin Date: Thu, 30 May 2019 16:44:43 +0300 Subject: [PATCH 2/2] Fixed sort pod by node and added sort by IP --- internal/views/pod.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/views/pod.go b/internal/views/pod.go index 8c9adb06..31e96259 100644 --- a/internal/views/pod.go +++ b/internal/views/pod.go @@ -60,7 +60,8 @@ func (v *podView) extraActions(aa keyActions) { aa[KeyShiftM] = newKeyAction("Sort MEM", v.sortColCmd(5, false), true) aa[KeyAltC] = newKeyAction("Sort CPU%", v.sortColCmd(6, false), true) aa[KeyAltM] = newKeyAction("Sort MEM%", v.sortColCmd(7, false), true) - aa[KeyShiftO] = newKeyAction("Sort Node", v.sortColCmd(8, true), true) + aa[KeyShiftD] = newKeyAction("Sort IP", v.sortColCmd(8, true), true) + aa[KeyShiftO] = newKeyAction("Sort Node", v.sortColCmd(9, true), true) } func (v *podView) listContainers(app *appView, _, res, sel string) {