mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Fix startupProbe behaviour changed
Signed-off-by: Shiming Zhang <wzshiming@foxmail.com>
This commit is contained in:
parent
44e9f6175d
commit
6defb3657f
@ -250,8 +250,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.
|
||||
|
Loading…
Reference in New Issue
Block a user