Description of problem:
Change some parameters in imageregistries image-registry to be invalid ones, no error appears, like change imagePullPolicy: Invalid or logging: level: invalid.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Update some parameters in imageregistries image-registry to be invalid ones
No error appears when try to save.
Should have warning on what is expected.
It's a nice-to-have feature, but this is not our goal for 4.0. Informers can't return invalid objects (with a non-integer log level, for example), therefore our current approach can't handle such objects. We need to implement a validation hook, which requires considerable efforts.
We've recently added support for OpenAPI validators on CRDs, so these can be added over time (not for 4.0.0)
Fixed by adding OpenAPI schema
*** This bug has been marked as a duplicate of bug 1705752 ***