From 1816a40bbb5931d9ee00bc309d13f10ef70addbb Mon Sep 17 00:00:00 2001 From: astraw99 Date: Sun, 29 Aug 2021 19:06:04 +0800 Subject: [PATCH] fix word comment to common Kubernetes-commit: 3e31933471e015a860e1967acfe730bb35422f17 --- tools/cache/index.go | 4 ++-- tools/cache/reflector.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/cache/index.go b/tools/cache/index.go index fa29e6a7..1d6aae56 100644 --- a/tools/cache/index.go +++ b/tools/cache/index.go @@ -78,7 +78,7 @@ func IndexFuncToKeyFuncAdapter(indexFunc IndexFunc) KeyFunc { } const ( - // NamespaceIndex is the lookup name for the most comment index function, which is to index by the namespace field. + // NamespaceIndex is the lookup name for the most common index function, which is to index by the namespace field. NamespaceIndex string = "namespace" ) @@ -94,7 +94,7 @@ func MetaNamespaceIndexFunc(obj interface{}) ([]string, error) { // Index maps the indexed value to a set of keys in the store that match on that value type Index map[string]sets.String -// Indexers maps a name to a IndexFunc +// Indexers maps a name to an IndexFunc type Indexers map[string]IndexFunc // Indices maps a name to an Index diff --git a/tools/cache/reflector.go b/tools/cache/reflector.go index f7adeeed..b07413f8 100644 --- a/tools/cache/reflector.go +++ b/tools/cache/reflector.go @@ -69,7 +69,7 @@ type Reflector struct { // backoff manages backoff of ListWatch backoffManager wait.BackoffManager - // initConnBackoffManager manages backoff the initial connection with the Watch calll of ListAndWatch. + // initConnBackoffManager manages backoff the initial connection with the Watch call of ListAndWatch. initConnBackoffManager wait.BackoffManager resyncPeriod time.Duration