Skip to content

Commit 41c90f1

Browse files
committed
fixup
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
1 parent 80f29eb commit 41c90f1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pkg/common/k8s-client/k8s_client.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,8 @@ func (k K8sClientWrapper) List(ctx context.Context, list client.ObjectList, opts
154154
}
155155

156156
for i, _ := range items {
157-
if gvk, err := apiutil.GVKForObject(items[i], k.scheme); err != nil {
157+
if err = k.ensureGVK(items[i].(client.Object)); err != nil {
158158
return nil, err
159-
} else {
160-
items[i].GetObjectKind().SetGroupVersionKind(gvk)
161159
}
162160
}
163161

0 commit comments

Comments
 (0)