mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 05:03:09 +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 {
|
if c.Started != nil && *c.Started {
|
||||||
// Stop probing for startup once container has 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 {
|
if w.probeType == startup {
|
||||||
return false
|
return true
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Disable other probes until container has started.
|
// Disable other probes until container has started.
|
||||||
|
Loading…
Reference in New Issue
Block a user