From c4d0623d7cc07b5854b3bd3d07a15a55f3c742d9 Mon Sep 17 00:00:00 2001 From: qingwave <854222409@qq.com> Date: Mon, 6 Jun 2022 02:55:58 +0000 Subject: [PATCH] fix some typos --- pkg/client/client.go | 2 +- pkg/client/namespaced_client.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/client/client.go b/pkg/client/client.go index 8a61614337..d56e6fe79c 100644 --- a/pkg/client/client.go +++ b/pkg/client/client.go @@ -45,7 +45,7 @@ type WarningHandlerOptions struct { // AllowDuplicateLogs does not deduplicate the to-be // logged surfaced warnings messages. See // log.WarningHandlerOptions for considerations - // regarding deuplication + // regarding deduplication AllowDuplicateLogs bool } diff --git a/pkg/client/namespaced_client.go b/pkg/client/namespaced_client.go index 12f1791c8e..674fe253d8 100644 --- a/pkg/client/namespaced_client.go +++ b/pkg/client/namespaced_client.go @@ -52,7 +52,7 @@ func (n *namespacedClient) RESTMapper() meta.RESTMapper { return n.client.RESTMapper() } -// Create implements clinet.Client. +// Create implements client.Client. func (n *namespacedClient) Create(ctx context.Context, obj Object, opts ...CreateOption) error { isNamespaceScoped, err := objectutil.IsAPINamespaced(obj, n.Scheme(), n.RESTMapper()) if err != nil { @@ -145,7 +145,7 @@ func (n *namespacedClient) Get(ctx context.Context, key ObjectKey, obj Object, o } if isNamespaceScoped { if key.Namespace != "" && key.Namespace != n.namespace { - return fmt.Errorf("namespace %s provided for the object %s does not match the namesapce %s on the client", key.Namespace, obj.GetName(), n.namespace) + return fmt.Errorf("namespace %s provided for the object %s does not match the namespace %s on the client", key.Namespace, obj.GetName(), n.namespace) } key.Namespace = n.namespace }