Kill LivenessProbe.Type

This commit is contained in:
Tim Hockin
2014-09-27 21:16:30 -07:00
parent 04cdf286a4
commit 1c02af3d16
14 changed files with 56 additions and 52 deletions

View File

@@ -105,3 +105,7 @@ func (h *HTTPHealthChecker) HealthCheck(podFullName string, currentState api.Pod
}
return DoHTTPCheck(formatURL(host, port, path), h.client)
}
func (h *HTTPHealthChecker) CanCheck(probe *api.LivenessProbe) bool {
return probe.HTTPGet != nil
}