mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-13 22:05:59 +00:00
shift the periodics timer
This commit is contained in:
parent
f337511ba5
commit
b3f9f1682f
@ -178,10 +178,13 @@ probeLoop:
|
|||||||
case <-w.stopCh:
|
case <-w.stopCh:
|
||||||
break probeLoop
|
break probeLoop
|
||||||
case <-probeTicker.C:
|
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
|
// continue
|
||||||
case <-w.manualTriggerCh:
|
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
|
// continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user