mirror of https://github.com/k3s-io/k3s
Refactor Status.String() in health pkg
parent
d6e36a4756
commit
5e3193afd1
|
@ -103,10 +103,12 @@ func findPortByName(container api.Container, portName string) int {
|
|||
}
|
||||
|
||||
func (s Status) String() string {
|
||||
if s == Healthy {
|
||||
switch s {
|
||||
case Healthy:
|
||||
return "healthy"
|
||||
} else if s == Unhealthy {
|
||||
case Unhealthy:
|
||||
return "unhealthy"
|
||||
default:
|
||||
return "unknown"
|
||||
}
|
||||
return "unknown"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue