Skip to content

Commit

Permalink
Merge pull request #1238 from ironcladlou/fix-unstructured-listing
Browse files Browse the repository at this point in the history
🐛 Fix use of `UnstructuredList` with unregistered typed
  • Loading branch information
k8s-ci-robot authored Nov 2, 2020
2 parents d8385e3 + b4434ec commit 9975e29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ func (c *client) Get(ctx context.Context, key ObjectKey, obj Object) error {
// List implements client.Client
func (c *client) List(ctx context.Context, obj ObjectList, opts ...ListOption) error {
switch obj.(type) {
case *unstructured.Unstructured:
case *unstructured.UnstructuredList:
return c.unstructuredClient.List(ctx, obj, opts...)
case *metav1.PartialObjectMetadataList:
return c.metadataClient.List(ctx, obj, opts...)
Expand Down

0 comments on commit 9975e29

Please sign in to comment.