Merge pull request #126931 from lengrongfu/feat/add-unready

Add default status "not ready" when readiness probe sync
This commit is contained in:
Kubernetes Prow Robot 2024-09-18 03:28:44 +01:00 committed by GitHub
commit bf6a9da1c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2465,7 +2465,7 @@ func (kl *Kubelet) syncLoopIteration(ctx context.Context, configCh <-chan kubety
ready := update.Result == proberesults.Success
kl.statusManager.SetContainerReadiness(update.PodUID, update.ContainerID, ready)
status := ""
status := "not ready"
if ready {
status = "ready"
}