-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Kubebuilder is not generating openapi files #1129
Comments
right. That's not a bug. KubeBuilder is not intended to generate go openapi files, since they're not useful for CRDs (they're basically only useful for aggregated API servers, and even then you can just bundle in the JSON/YAML form and parse on init). |
Thank you for the answers |
Is there a way to generate openapi specs for kubebuilder CRDs? They are useful for generating client libraries in other languages (python, go, java, etc). |
Hi @gclawes, Could you please raise a new issue to request this support with a summary and clear description of the uses cases which justify the kubebuilder support to generate openapi specs? |
Sure! |
HI @gclawes could you raise the issue? If yes, could you please add the link here? |
Yes, I'll raise an issue. Haven't had time to do a write-up yet. |
@camilamacedo86 opened #1231 |
Following the steps
// +k8s:openapi-gen=true
forGuestbook
as followsmake
What I expected?
See
api/v1/zz_generated.openapi.go
file.kubebuilder version
) : version: "2"go.mod
file)sigs.k8s.io/controller-runtime v0.3.0
/kind bug
The text was updated successfully, but these errors were encountered: