mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-10 04:27:54 +00:00
add default status unready when readiness probe sync
Signed-off-by: rongfu.leng <lenronfu@gmail.com>
This commit is contained in:
parent
9125473eec
commit
de4010939d
@ -2465,7 +2465,7 @@ func (kl *Kubelet) syncLoopIteration(ctx context.Context, configCh <-chan kubety
|
|||||||
ready := update.Result == proberesults.Success
|
ready := update.Result == proberesults.Success
|
||||||
kl.statusManager.SetContainerReadiness(update.PodUID, update.ContainerID, ready)
|
kl.statusManager.SetContainerReadiness(update.PodUID, update.ContainerID, ready)
|
||||||
|
|
||||||
status := ""
|
status := "not ready"
|
||||||
if ready {
|
if ready {
|
||||||
status = "ready"
|
status = "ready"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user