Fix startupProbe behaviour changed
Signed-off-by: Shiming Zhang <wzshiming@foxmail.com>
This commit is contained in:
@@ -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.
|
||||||
|
Reference in New Issue
Block a user