mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +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:
commit
5fa794db46
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user