From 3e2932179084fa322ba1bc53997d44e1d383db00 Mon Sep 17 00:00:00 2001 From: wq Date: Sat, 8 Jan 2022 23:39:23 +0900 Subject: [PATCH 1/2] fix typos in comment --- staging/src/k8s.io/client-go/tools/cache/controller.go | 4 ++-- staging/src/k8s.io/client-go/tools/cache/reflector.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/staging/src/k8s.io/client-go/tools/cache/controller.go b/staging/src/k8s.io/client-go/tools/cache/controller.go index c85c29db35a..bb4e1ad2458 100644 --- a/staging/src/k8s.io/client-go/tools/cache/controller.go +++ b/staging/src/k8s.io/client-go/tools/cache/controller.go @@ -370,8 +370,8 @@ type TransformFunc func(interface{}) (interface{}, error) // the returned Store for Get/List operations; Add/Modify/Deletes will cause // the event notifications to be faulty. // 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 -// be invokved for them. +// put into the Store and corresponding Add/Modify/Delete handlers will +// be invoked for them. func NewTransformingInformer( lw ListerWatcher, objType runtime.Object, diff --git a/staging/src/k8s.io/client-go/tools/cache/reflector.go b/staging/src/k8s.io/client-go/tools/cache/reflector.go index 0708a6e8b58..a174628576d 100644 --- a/staging/src/k8s.io/client-go/tools/cache/reflector.go +++ b/staging/src/k8s.io/client-go/tools/cache/reflector.go @@ -401,7 +401,7 @@ func (r *Reflector) ListAndWatch(stopCh <-chan struct{}) error { timeoutSeconds := int64(minWatchTimeout.Seconds() * (rand.Float64() + 1.0)) options = metav1.ListOptions{ 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. TimeoutSeconds: &timeoutSeconds, // To reduce load on kube-apiserver on watch restarts, you may enable watch bookmarks. From 4f38d4aaa1dcc88756a9ba9ea063759e50a15bee Mon Sep 17 00:00:00 2001 From: wq Date: Sun, 9 Jan 2022 00:07:43 +0900 Subject: [PATCH 2/2] fix a typo in the comment of ImageCredentialProviderConfigFile --- pkg/kubelet/config/flags.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/kubelet/config/flags.go b/pkg/kubelet/config/flags.go index 80d0c77f41d..c43f75275b3 100644 --- a/pkg/kubelet/config/flags.go +++ b/pkg/kubelet/config/flags.go @@ -69,7 +69,7 @@ type ContainerRuntimeOptions struct { // Image credential provider plugin options // ImageCredentialProviderConfigFile is the path to the credential provider plugin config file. - // This config file is a specification for what credential providers are enabled and invokved + // This config file is a specification for what credential providers are enabled and invoked // by the kubelet. The plugin config should contain information about what plugin binary // to execute and what container images the plugin should be called for. // +optional