Skip to content

bug: generated listers report $kind.$group instead of $resource.$group not found #2679

@ncdc

Description

@ncdc

Describe the bug

When using one of our generated listers to get an object, if it's not found, the error comes back like this:

Error from server (NotFound): APIExport.apis.kcp.io "today-cowboys" not found

Note the use of APIExport. To be consistent with the rest of the code, it should be apiexports.apis.kcp.io (resource, not kind).

Steps To Reproduce

See above

Expected Behaviour

See above

Additional Context

No response

Metadata

Metadata

Labels

kind/bugCategorizes issue or PR as related to a bug.

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions