gen
gen copied to clipboard
Support ad-hoc client generation for CRDs
as 1.15's out, users can publish their own openapi spec w/ CRD integration. we should probably refactor the scripts to support ad-hoc client generations.
/cc @brendandburns @roycaihw
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale
.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close
.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten
.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close
.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /lifecycle rotten
Would love to see this done. I'd be happy to help if I can.
Generating clients for CRDs would be amazing
Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen
.
Mark the issue as fresh with /remove-lifecycle rotten
.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /close
@fejta-bot: Closing this issue.
In response to this:
Rotten issues close after 30d of inactivity. Reopen the issue with
/reopen
. Mark the issue as fresh with/remove-lifecycle rotten
.Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /close
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
/reopen ?
I think this would be a useful feature.
I recently went down this route, of trying to get this working, and it was painful and required some manual work too: https://github.com/bookingcom/shipper/pull/243
/reopen
@yue9944882: Reopened this issue.
In response to this:
/reopen
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
@zoidbergwill we had an experimental CRD model generator for java (just generating model would be sufficient b/c we have custom-object api to be the general client) https://github.com/kubernetes-client/java/blob/master/docs/generate-model-from-third-party-resources.md. it will require kubernetes v1.15+ tho. it works for us in production..
/lifecycle active
@yue9944882 @zoidbergwill we had success using https://github.com/kubernetes-client/gen/ for our case. we grabbed swagger.json.unprocessed
(via 1.15+) and post-processed the spec by hand through gron.
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale
.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close
.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /lifecycle stale
I had some luck in December, but it was pretty painful. I also ended up doing a bunch of copypasta by hand.
Most of it is documented in https://github.com/bookingcom/shipper/pull/243
Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten
.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close
.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /lifecycle rotten
/remove-lifecycle rotten
/lifecycle frozen
UPDATE: for java the CRD models now can also be written manually by properly implementing some interfaces: https://github.com/kubernetes-client/java/pull/1020
After roughly 1.5 year, is anyone actually working on this issue?
The work on the java client has been pretty active. I'm not sure about other languages though. I guess a status at the main github issue status for other languages would be handy.
I'm looking to generate client-go for CRD, does anyone know of any way?
Have check the https://github.com/kubernetes/code-generator and seems like it's base the golang (mean base on mode of golang, like types.go ) and i just have the CRD files, it's generate from rust.
EDIT: checking the https://github.com/OpenAPITools/openapi-generator