mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-02 19:28:16 +00:00
Merge pull request #119089 from mochizuki875/add_probe_triggered_log
Add probe triggered log and shift the periodics timer after manual run
This commit is contained in:
@@ -178,7 +178,12 @@ probeLoop:
|
||||
case <-w.stopCh:
|
||||
break probeLoop
|
||||
case <-probeTicker.C:
|
||||
// continue
|
||||
case <-w.manualTriggerCh:
|
||||
// Updating the periodic timer to run the probe again at intervals of probeTickerPeriod
|
||||
// starting from the moment a manual run occurs.
|
||||
probeTicker.Reset(probeTickerPeriod)
|
||||
klog.V(4).InfoS("Triggerd Probe by manual run", "probeType", w.probeType, "pod", klog.KObj(w.pod), "podUID", w.pod.UID, "containerName", w.container.Name)
|
||||
// continue
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user