Closed bergerx closed 11 months ago
I hastily merged this but now I'm not sure if this was a good idea. :/
How do we know the API list (including builtin APIs) if client.ServerPreferredResources()
fails to run? In your example, how does the code know about ControllerRevision
or Pod
APIs to iterate on?
Also I think any errors shouldn't be .V(1)
, they should be always visible IMO. @bergerx
Currently, it fails when any of the api-resources is failing but this should only be a warning, and there is no need to block the tree to proceed given we print some warnings about the error.
Current version:
With this PR:
I just logged the error rather than printing it to the stderr as client-go already prints the warnings ootb as you can see above. But if you run it with
-v 1
, you can still see the relevant error: