Added draft for collector metrics of k8s

This commit is contained in:
Alexandr Kozlenkov
2018-10-29 02:05:25 +03:00
committed by Bradley Cicenas
parent 187adf0540
commit 7f6ff0b599
4 changed files with 93 additions and 61 deletions

View File

@@ -67,11 +67,11 @@ func (s *Status) SetHealth(val string) {
color := ui.ColorDefault
switch val {
case "healthy":
case "healthy", "Succeeded":
color = ui.ThemeAttr("status.ok")
case "unhealthy":
case "unhealthy", "Failed", "Unknown":
color = ui.ThemeAttr("status.danger")
case "starting":
case "starting", "Pending", "Running":
color = ui.ThemeAttr("status.warn")
}