Repository navigation
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: marun The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Ready for review |
|
/lgtm |
|
@DirectXMan12 can you take a look? |
|
Taking a quick look through this PR, I don't see any way to choose the output version when invoking the generator? It'd be great to continue to support |
|
@munnerz this PR is not about the crd generator, but the schema patcher. I agree with your request, but that's a follow-up as it is unrelated. PR welcome :) |
|
/lgtm |
|
@DirectXMan12 can we merge this? |
|
Heh, I completely missed this before I wrote #356. I'll take a look at this tomorrow, and hopefully we can unify. |
This moment you spent a day writing something and then check open pull requests :) But I guess you support also crd-gen v1 output. |
|
Superseded by #356 |
This PR adds support to crdschema generator for CRD v1 manifests.
The schema generated for a v1 CRD is also validated for structural compatibility.Upon the advice of @sttts I have removed the structural schema validation since the implementation requires the use of code intended to be internal to the kube apiserver. Schema construction is intended to be correct, but ultimately validation can only be authoritatively performed on submission to an apiserver.
cc: @sttts