Skip to content

Commit

Permalink
✨ Fix some typos (#1312)
Browse files Browse the repository at this point in the history
* Fix minor typo in client codec

Updates resouces to resources in pkg/client noConversionParamCodec.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>

* Fix minor listwatch comment typo

Updates comment in metatdata listwatch creation to read listwatch
instead of listwaatch.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
  • Loading branch information
hasheddan committed Jan 2, 2021
1 parent 4dad2a0 commit 5564be7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/cache/internal/informers_map.go
Expand Up @@ -320,7 +320,7 @@ func createMetadataListWatch(gvk schema.GroupVersionKind, ip *specificInformersM
// pass in their own contexts instead of relying on this fixed one here.
ctx := context.TODO()

// create the relevant listwaatch
// create the relevant listwatch
return &cache.ListWatch{
ListFunc: func(opts metav1.ListOptions) (runtime.Object, error) {
if ip.namespace != "" && mapping.Scope.Name() != meta.RESTScopeNameRoot {
Expand Down
2 changes: 1 addition & 1 deletion pkg/client/codec.go
Expand Up @@ -12,7 +12,7 @@ import (
var _ runtime.ParameterCodec = noConversionParamCodec{}

// noConversionParamCodec is a no-conversion codec for serializing parameters into URL query strings.
// it's useful in scenarios with the unstructured client and arbitrary resouces.
// it's useful in scenarios with the unstructured client and arbitrary resources.
type noConversionParamCodec struct{}

func (noConversionParamCodec) EncodeParameters(obj runtime.Object, to schema.GroupVersion) (url.Values, error) {
Expand Down

0 comments on commit 5564be7

Please sign in to comment.