Skip to content

Commit 9975e29

Browse files
authored
Merge pull request kubernetes-sigs#1238 from ironcladlou/fix-unstructured-listing
🐛 Fix use of `UnstructuredList` with unregistered typed
2 parents d8385e3 + b4434ec commit 9975e29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/client/client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ func (c *client) Get(ctx context.Context, key ObjectKey, obj Object) error {
213213
// List implements client.Client
214214
func (c *client) List(ctx context.Context, obj ObjectList, opts ...ListOption) error {
215215
switch obj.(type) {
216-
case *unstructured.Unstructured:
216+
case *unstructured.UnstructuredList:
217217
return c.unstructuredClient.List(ctx, obj, opts...)
218218
case *metav1.PartialObjectMetadataList:
219219
return c.metadataClient.List(ctx, obj, opts...)

0 commit comments

Comments
 (0)