-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Start using JSON Schema for validation #83
Conversation
Hi @csomh. Thanks for your PR. I'm waiting for a operator-framework or openshift member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@csomh Just wanted to say good work on this! It seems like it satisfies a lot of the basic cases, and allows us to just codify the more complex comparisons. I would like to take some time and ensure that all of the use cases that were covered previously are still working here -- but in general I do like this approach. One thing I want to point out is that this does change the formatting of most/all of the log messages, which to me is a breaking change -- so we would have to either update this PR to retain the old format of the logs or we would need to bump the major version. I would prefer the former. |
FYI @kevinrizza as one of the consumers of courier...CVP does not rely on the format of the log messages. |
@kevinrizza thanks! As for the format of log messages: would it be possible to sync releasing this change with the future fix for #74, which will probably also change the format of the log messages? I'm asking this, because keeping the old format of the messages requires parsing the I would rather stick to the current concatenate |
@csomh Agreed, if we are going to make format changes to all of the log messages, my preference would be to make a more sweeping change that would give more detail as to what csv or crd is causing the error. I'm not opposed to the changes to the logger in principle, just to the timing of them. If that is directly tied to this PR because of technical reasons, then lets hold this pr until we make that change as well. |
Refactor CRD and CSV validation, and use JSON Schema instead of nested if-s. This should make future validation easier. Signed-off-by: Hunor Csomortáni <[email protected]>
@csomh: PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
I think this isn't relevant anymore 🙂 Closing. |
Refactor CRD and CSV validation, and use JSON Schema
instead of nested if-s.
This should make future validation easier.
TODO: