Skip to content

Commit

Permalink
Fix startupProbe behaviour changed
Browse files Browse the repository at this point in the history
Signed-off-by: Shiming Zhang <wzshiming@foxmail.com>
  • Loading branch information
wzshiming committed Apr 19, 2021
1 parent bfff15f commit 91908ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/kubelet/prober/worker.go
Expand Up @@ -243,8 +243,9 @@ func (w *worker) doProbe() (keepGoing bool) {

if c.Started != nil && *c.Started {
// Stop probing for startup once container has started.
// we keep it running to make sure it will work for restarted container.
if w.probeType == startup {
return false
return true
}
} else {
// Disable other probes until container has started.
Expand Down

0 comments on commit 91908ac

Please sign in to comment.