File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -316,12 +316,12 @@ func (w *worker) doProbe(ctx context.Context) (keepGoing bool) {
316
316
317
317
w .resultsManager .Set (w .containerID , result , w .pod )
318
318
319
- if (w .probeType == liveness && result == results .Failure ) || w .probeType == startup {
319
+ if (w .probeType == liveness && result == results .Failure ) || ( w .probeType == startup && ( result == results . Success || result == results . Failure )) {
320
320
// The container fails a liveness/startup check, it will need to be restarted.
321
321
// Stop probing until we see a new container ID. This is to reduce the
322
322
// chance of hitting #21751, where running `docker exec` when a
323
323
// container is being stopped may lead to corrupted container state.
324
- // In addition, if the container succeeds a startup probe, we should stop probing
324
+ // In addition, if the threshold for each result of a startup probe is exceeded , we should stop probing
325
325
// until the container is restarted.
326
326
// This is to prevent extra Probe executions #117153.
327
327
w .onHold = true
You can’t perform that action at this time.
0 commit comments