mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-12 05:21:58 +00:00
shift the periodics timer
This commit is contained in:
parent
f337511ba5
commit
b3f9f1682f
@ -178,10 +178,13 @@ probeLoop:
|
||||
case <-w.stopCh:
|
||||
break probeLoop
|
||||
case <-probeTicker.C:
|
||||
klog.V(3).InfoS("Triggerd Probe by periodSeconds", "probeType", w.probeType, "pod", klog.KObj(w.pod), "podUID", w.pod.UID, "containerName", w.container.Name)
|
||||
klog.V(4).InfoS("Triggerd Probe by periodSeconds", "probeType", w.probeType, "pod", klog.KObj(w.pod), "podUID", w.pod.UID, "containerName", w.container.Name)
|
||||
// continue
|
||||
case <-w.manualTriggerCh:
|
||||
klog.V(3).InfoS("Triggerd Probe by manual run", "probeType", w.probeType, "pod", klog.KObj(w.pod), "podUID", w.pod.UID, "containerName", w.container.Name)
|
||||
// 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