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:
Kubernetes Prow Robot 2024-10-23 02:20:54 +01:00 committed by GitHub
commit 5fa794db46
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
}
}