Skip to content

Commit c4d0623

Browse files
committed
fix some typos
1 parent f469197 commit c4d0623

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/client/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ type WarningHandlerOptions struct {
4545
// AllowDuplicateLogs does not deduplicate the to-be
4646
// logged surfaced warnings messages. See
4747
// log.WarningHandlerOptions for considerations
48-
// regarding deuplication
48+
// regarding deduplication
4949
AllowDuplicateLogs bool
5050
}
5151

pkg/client/namespaced_client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func (n *namespacedClient) RESTMapper() meta.RESTMapper {
5252
return n.client.RESTMapper()
5353
}
5454

55-
// Create implements clinet.Client.
55+
// Create implements client.Client.
5656
func (n *namespacedClient) Create(ctx context.Context, obj Object, opts ...CreateOption) error {
5757
isNamespaceScoped, err := objectutil.IsAPINamespaced(obj, n.Scheme(), n.RESTMapper())
5858
if err != nil {
@@ -145,7 +145,7 @@ func (n *namespacedClient) Get(ctx context.Context, key ObjectKey, obj Object, o
145145
}
146146
if isNamespaceScoped {
147147
if key.Namespace != "" && key.Namespace != n.namespace {
148-
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)
148+
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)
149149
}
150150
key.Namespace = n.namespace
151151
}

0 commit comments

Comments
 (0)