Skip to content
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

codegen: enable CRD schema generation using protoc-gen-openapi #539

Merged
merged 3 commits into from
Apr 5, 2024

Conversation

shashankram
Copy link
Contributor

@shashankram shashankram commented Apr 4, 2024

Allows generating CRDs schema using protoc-gen-openapi instead of Cue.
Although protoc-gen-openapi can be used with this change, it is not enabled by
default for backward compatibility reasons, and needs to be explicitly enabled
using the SchemaGenerator field in the GroupOptions type.

This is a part of a larger effort to customize schema generation that is harder to accomplish using Cue.
Although this can be considered a breaking change due to dependency updates, the code generation itself
is completely backward compatible and still uses Cue by default.

Allows generating CRDs schema using protoc-gen-openapi instead
of Cue.

This is a part of a larger effort to customize schema generation
that is harder to accomplish using Cue:
solo-io/gloo-mesh-enterprise#16049

Signed-off-by: Shashank Ram <shashank.ram@solo.io>
@solo-changelog-bot
Copy link

Issues linked to changelog:
https://github.com/solo-io/gloo-mesh-enterprise/issues/16049

@soloio-bulldozer soloio-bulldozer bot merged commit b550b99 into main Apr 5, 2024
3 checks passed
@soloio-bulldozer soloio-bulldozer bot deleted the shashankram/gen-crd-ext branch April 5, 2024 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants