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): openshift-install v0.7.0-master-6-g8f02020b59147c933a08c5e248a8e2c69dad24ae How reproducible: always Steps to Reproduce: 1.Update some parameters in imageregistries image-registry to be invalid ones imagePullPolicy: Invalid or logging: level: invalid. 2. 3. Actual results: No error appears when try to save. Expected results: Should have warning on what is expected. Additional info:
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 ***