mirror of
https://github.com/bcicen/ctop.git
synced 2025-12-06 23:26:45 +08:00
Added draft for collector metrics of k8s
This commit is contained in:
committed by
Bradley Cicenas
parent
187adf0540
commit
7f6ff0b599
@@ -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")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user