Skip to content

Commit a262c80

Browse files
committed
fix from rv comment
1 parent ead2102 commit a262c80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/kubelet/prober/worker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ func (w *worker) doProbe(ctx context.Context) (keepGoing bool) {
316316

317317
w.resultsManager.Set(w.containerID, result, w.pod)
318318

319-
if (w.probeType == liveness && result == results.Failure) || (w.probeType == startup && (result == results.Success || result == results.Failure)) {
319+
if (w.probeType == liveness && result == results.Failure) || w.probeType == startup {
320320
// The container fails a liveness/startup check, it will need to be restarted.
321321
// Stop probing until we see a new container ID. This is to reduce the
322322
// chance of hitting #21751, where running `docker exec` when a

0 commit comments

Comments
 (0)