If anyone else is trying to build a swagger spec for their CRD types, then 
I recommend checking out 
the https://github.com/kubernetes-incubator/apiserver-builder project that 
makes it easy to spin up a user apiserver + etcd, and will produce a 
swagger.json for the types registered. A bit of hacking around with the 
kubernetes-client/gen project and we're off to the races :)

On Monday, 2 October 2017 10:56:52 UTC+2, Mark NS wrote:
>
> Hi folks,
> I've been trying to generate the OpenAPI spec for the CRDs that I have 
> defined in my cluster. I have used the kubernetes/kube-openapi generator to 
> produce the OpenAPI definitions I need for my types, and have been playing 
> with code in k8s.io/kube-openapi/pkg/builder/openapi_test.go to see if I 
> could turn that into the json I require. This has made me realise that I 
> need the ws.Route information for each endpoint as well of course.
>
> My questions are:
>  - Is it possible to build the standard go-restful Routes for a CRD type? 
> Could someone point me at the code?
>  - Am I overcomplicating things?... Is there another way to get the 
> swagger spec for CRD types?
>
> Thanks,
> Mark
>

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to kubernetes-users+unsubscr...@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to