CustomResourceDefinitions status fields cause spam of errors that cannot be fixed #2482
Labels
kind/bug
Categorizes issue or PR as related to a bug.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
What happened: Spam of errors that look like this:
What you expected to happen:
There should be no errors logged. Status fields are not guaranteed to exist at resource creation. The behavior is not consistent with known types where a default value is taken.
How to reproduce it (as minimally and precisely as possible):
Create
cr-config.yaml
:Create a CRD with status and a valid object. Do not run a controller (this is one of possible scenarios).
Run:
The error repeats for every instance of a resource, and there can be thousands of such resources.
Anything else we need to know?:
I believe is a general problem for all CRDs and all status fields. Since there can be many differing objects, the error isn't helpful enough. Might be useful to log this only in verbose mode with resource name and kind.
Environment: kind or any other Kubernetes cluster
kubectl version
): Client Version: v1.30.2 (shouldn't matter)The text was updated successfully, but these errors were encountered: