mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-13 13:14:05 +00:00
Refactor Status.String() in health pkg
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
Reference in New Issue
Block a user