Merge pull request #57435 from silenceshell/patch-1
Automatic merge from submit-queue (batch tested with PRs 57292, 56274, 57435, 57438, 57429). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. fix a typo Just a typo, `timemoutseconds` should be `timeoutSeconds`.
This commit is contained in:
		@@ -302,12 +302,12 @@ func (r *Reflector) ListAndWatch(stopCh <-chan struct{}) error {
 | 
				
			|||||||
		default:
 | 
							default:
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		timemoutseconds := int64(minWatchTimeout.Seconds() * (rand.Float64() + 1.0))
 | 
							timeoutSeconds := int64(minWatchTimeout.Seconds() * (rand.Float64() + 1.0))
 | 
				
			||||||
		options = metav1.ListOptions{
 | 
							options = metav1.ListOptions{
 | 
				
			||||||
			ResourceVersion: resourceVersion,
 | 
								ResourceVersion: resourceVersion,
 | 
				
			||||||
			// We want to avoid situations of hanging watchers. Stop any wachers that do not
 | 
								// We want to avoid situations of hanging watchers. Stop any wachers that do not
 | 
				
			||||||
			// receive any events within the timeout window.
 | 
								// receive any events within the timeout window.
 | 
				
			||||||
			TimeoutSeconds: &timemoutseconds,
 | 
								TimeoutSeconds: &timeoutSeconds,
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		r.metrics.numberOfWatches.Inc()
 | 
							r.metrics.numberOfWatches.Inc()
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user