Unverified Commit c68ee221 authored by k8s-ci-robot's avatar k8s-ci-robot Committed by GitHub

Merge pull request #69613 from Pingan2017/runtimeError

improve err msg for runtimeError when the uptime of runtime never update
parents 060218a8 a5824043
......@@ -74,7 +74,9 @@ func (s *runtimeState) runtimeErrors() []string {
s.RLock()
defer s.RUnlock()
var ret []string
if !s.lastBaseRuntimeSync.Add(s.baseRuntimeSyncThreshold).After(time.Now()) {
if s.lastBaseRuntimeSync.IsZero() {
ret = append(ret, "container runtime status check may not have completed yet")
} else if !s.lastBaseRuntimeSync.Add(s.baseRuntimeSyncThreshold).After(time.Now()) {
ret = append(ret, "container runtime is down")
}
for _, hc := range s.healthChecks {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment