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:
Lv Jiawei 2018-10-24 10:47:55 +08:00 committed by GitHub
parent 3905fb6696
commit 06a3391b0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1802,7 +1802,7 @@ func (kl *Kubelet) canRunPod(pod *v1.Pod) lifecycle.PodAdmitResult {
// state every sync-frequency seconds. Never returns.
func (kl *Kubelet) syncLoop(updates <-chan kubetypes.PodUpdate, handler SyncHandler) {
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
// sync interval is defaulted to 10s.
syncTicker := time.NewTicker(time.Second)