mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-16 15:20:17 +00:00
fix from rv comment
This commit is contained in:
parent
ead21021fd
commit
a262c806d2
@ -316,7 +316,7 @@ func (w *worker) doProbe(ctx context.Context) (keepGoing bool) {
|
|||||||
|
|
||||||
w.resultsManager.Set(w.containerID, result, w.pod)
|
w.resultsManager.Set(w.containerID, result, w.pod)
|
||||||
|
|
||||||
if (w.probeType == liveness && result == results.Failure) || (w.probeType == startup && (result == results.Success || result == results.Failure)) {
|
if (w.probeType == liveness && result == results.Failure) || w.probeType == startup {
|
||||||
// The container fails a liveness/startup check, it will need to be restarted.
|
// The container fails a liveness/startup check, it will need to be restarted.
|
||||||
// Stop probing until we see a new container ID. This is to reduce the
|
// Stop probing until we see a new container ID. This is to reduce the
|
||||||
// chance of hitting #21751, where running `docker exec` when a
|
// chance of hitting #21751, where running `docker exec` when a
|
||||||
|
Loading…
Reference in New Issue
Block a user