-
Notifications
You must be signed in to change notification settings - Fork 691
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
Add CRD schema and fix JSON errors #941
Add CRD schema and fix JSON errors #941
Conversation
awesome I was meaning to do this since forever but I was lazy; thank you! |
Unfortunately I can no longer approve the CI workflows :-( |
As we now enable validation maybe it would make sense to set
|
yeah making that optional seems reasonable |
88a2d93
to
fdbcb7e
Compare
The issues related to this causing a lot of trouble, can someone please check @josvazg. |
Hi @snorwin, thanks for this fix I will review on our side and we can hopefully have it merged soon |
Seems Can we give it a default in the Makefile? Maybe Otherwise I would expect the development docs would explain the expected way to call |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Thanks a lot for this contribution!
Shouldn't we have updated the patch version as we're touching the schema? |
The lack of proper schema validation can lead to errors when using libraries that rely on K8s API responses (JSON) to match Go structs. In particular, if there are errors in the unmarshaling a SealedSecret resource, the controller will stop watching and processing all the resources of that kind. To avoid such problems, an OpenAPI scheme was introduced wherever possible.
Description of the change
.spec.encryptedData
.spec.encryptedData
as the structure isn't ensured by any schemaBenefits
Possible drawbacks
None.
Applicable issues
Fixes #82 #505