mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-06 19:52:42 +00:00
rename probe.Healthy to probe.Success and renam probe.Unhealthy to probe.Failure.
This commit is contained in:
@@ -20,17 +20,17 @@ type Status int
|
||||
|
||||
// Status values must be one of these constants.
|
||||
const (
|
||||
Healthy Status = iota
|
||||
Unhealthy
|
||||
Success Status = iota
|
||||
Failure
|
||||
Unknown
|
||||
)
|
||||
|
||||
func (s Status) String() string {
|
||||
switch s {
|
||||
case Healthy:
|
||||
return "healthy"
|
||||
case Unhealthy:
|
||||
return "unhealthy"
|
||||
case Success:
|
||||
return "success"
|
||||
case Failure:
|
||||
return "failure"
|
||||
default:
|
||||
return "unknown"
|
||||
}
|
||||
|
Reference in New Issue
Block a user