Skip to content

Fakeclient requires types read through unstructured to be registered in the scheme #702

Closed
@alvaroaleman

Description

@alvaroaleman

Writing a test that uses the fakeClient for code that uses *unstructured.UnstructuredList to list something, the test fails with a

failed to list ImageRegistryConfigs: non-list type *unstructured.UnstructuredList (kind "my-api/v1, Kind=Config") passed as output

The same code works fine when using a non-fake client.
/kind bug

Metadata

Metadata

Assignees

Labels

area/fake-clientThis affects the fake implementation of the client (which is a bit undermaintained ATM)help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/bugCategorizes issue or PR as related to a bug.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions