mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Replace resyncTicker with syncTicker in commenting
The variable resyncTicker in commenting is out of date. It is replaced with syncTicker.
This commit is contained in:
parent
3905fb6696
commit
06a3391b0c
@ -1802,7 +1802,7 @@ func (kl *Kubelet) canRunPod(pod *v1.Pod) lifecycle.PodAdmitResult {
|
|||||||
// state every sync-frequency seconds. Never returns.
|
// state every sync-frequency seconds. Never returns.
|
||||||
func (kl *Kubelet) syncLoop(updates <-chan kubetypes.PodUpdate, handler SyncHandler) {
|
func (kl *Kubelet) syncLoop(updates <-chan kubetypes.PodUpdate, handler SyncHandler) {
|
||||||
glog.Info("Starting kubelet main sync loop.")
|
glog.Info("Starting kubelet main sync loop.")
|
||||||
// The resyncTicker wakes up kubelet to checks if there are any pod workers
|
// The syncTicker wakes up kubelet to checks if there are any pod workers
|
||||||
// that need to be sync'd. A one-second period is sufficient because the
|
// that need to be sync'd. A one-second period is sufficient because the
|
||||||
// sync interval is defaulted to 10s.
|
// sync interval is defaulted to 10s.
|
||||||
syncTicker := time.NewTicker(time.Second)
|
syncTicker := time.NewTicker(time.Second)
|
||||||
|
Loading…
Reference in New Issue
Block a user