mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-15 22:20:51 +00:00
rename probe.Healthy to probe.Success and renam probe.Unhealthy to probe.Failure.
This commit is contained in:
@@ -115,7 +115,7 @@ func (r *HealthyRegistry) doCheck(key string) util.T {
|
||||
case err != nil:
|
||||
glog.V(2).Infof("HealthyRegistry: node %q health check error: %v", key, err)
|
||||
nodeStatus = api.ConditionUnknown
|
||||
case status == probe.Unhealthy:
|
||||
case status == probe.Failure:
|
||||
nodeStatus = api.ConditionNone
|
||||
default:
|
||||
nodeStatus = api.ConditionFull
|
||||
|
@@ -30,7 +30,7 @@ import (
|
||||
type alwaysYes struct{}
|
||||
|
||||
func (alwaysYes) HealthCheck(host string) (probe.Status, error) {
|
||||
return probe.Healthy, nil
|
||||
return probe.Success, nil
|
||||
}
|
||||
|
||||
func TestBasicDelegation(t *testing.T) {
|
||||
@@ -77,9 +77,9 @@ type notMinion struct {
|
||||
|
||||
func (n *notMinion) HealthCheck(host string) (probe.Status, error) {
|
||||
if host != n.minion {
|
||||
return probe.Healthy, nil
|
||||
return probe.Success, nil
|
||||
} else {
|
||||
return probe.Unhealthy, nil
|
||||
return probe.Failure, nil
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user