mirror of
https://github.com/kubernetes/client-go.git
synced 2025-09-08 10:29:25 +00:00
fix typos in comment
Kubernetes-commit: 3e2932179084fa322ba1bc53997d44e1d383db00
This commit is contained in:
4
tools/cache/controller.go
vendored
4
tools/cache/controller.go
vendored
@@ -370,8 +370,8 @@ type TransformFunc func(interface{}) (interface{}, error)
|
|||||||
// the returned Store for Get/List operations; Add/Modify/Deletes will cause
|
// the returned Store for Get/List operations; Add/Modify/Deletes will cause
|
||||||
// the event notifications to be faulty.
|
// the event notifications to be faulty.
|
||||||
// The given transform function will be called on all objects before they will
|
// The given transform function will be called on all objects before they will
|
||||||
// put put into the Store and corresponding Add/Modify/Delete handlers will
|
// put into the Store and corresponding Add/Modify/Delete handlers will
|
||||||
// be invokved for them.
|
// be invoked for them.
|
||||||
func NewTransformingInformer(
|
func NewTransformingInformer(
|
||||||
lw ListerWatcher,
|
lw ListerWatcher,
|
||||||
objType runtime.Object,
|
objType runtime.Object,
|
||||||
|
2
tools/cache/reflector.go
vendored
2
tools/cache/reflector.go
vendored
@@ -401,7 +401,7 @@ func (r *Reflector) ListAndWatch(stopCh <-chan struct{}) error {
|
|||||||
timeoutSeconds := 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 watchers that do not
|
||||||
// receive any events within the timeout window.
|
// receive any events within the timeout window.
|
||||||
TimeoutSeconds: &timeoutSeconds,
|
TimeoutSeconds: &timeoutSeconds,
|
||||||
// To reduce load on kube-apiserver on watch restarts, you may enable watch bookmarks.
|
// To reduce load on kube-apiserver on watch restarts, you may enable watch bookmarks.
|
||||||
|
Reference in New Issue
Block a user