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

✨ introduce runtime-openapi-gen to generate openapi spec on release #6462

Conversation

chrischdi
Copy link
Member

@chrischdi chrischdi commented Apr 29, 2022

What this PR does / why we need it:

This PR introduces adds the upstream openapi-gen to generate go openapi definitions and runtime-openapi-gen to generate a openapi spec for Runtime SDK hooks on release.

Requires #6455 to get merged first.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Part of #6330

TODOs:

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Apr 29, 2022
Makefile Outdated Show resolved Hide resolved
Makefile Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
Makefile Show resolved Hide resolved
hack/tools/runtime-openapi-gen/main.go Outdated Show resolved Hide resolved
hack/tools/runtime-openapi-gen/main.go Show resolved Hide resolved
@chrischdi chrischdi force-pushed the pr-runtime-sdk-runtime-openapi-gen branch from d6a0865 to 7dfbfec Compare April 29, 2022 12:40
@sbueringer
Copy link
Member

No rush, but just fyi, the latest push --force didn't seem to push everything (just in case you already did implement it :) )

Makefile Outdated Show resolved Hide resolved
@chrischdi chrischdi force-pushed the pr-runtime-sdk-runtime-openapi-gen branch 6 times, most recently from 33fd791 to 9bbd3cf Compare May 2, 2022 10:20
Copy link
Contributor

@ykakarap ykakarap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this PR is also introducing the discovery types. Dropping a note here to make sure that we wait for the Discovery PR (#6455) before we merge this.

@killianmuldoon
Copy link
Contributor

/area runtime-sdk

@k8s-ci-robot k8s-ci-robot added area/runtime-sdk Issues or PRs related to Runtime SDK needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels May 9, 2022
@sbueringer sbueringer mentioned this pull request May 11, 2022
30 tasks
exp/runtime/hooks/api/v1alpha1/groupversion_info.go Outdated Show resolved Hide resolved
internal/runtime/catalog/openapi.go Outdated Show resolved Hide resolved
internal/runtime/catalog/openapi.go Outdated Show resolved Hide resolved
internal/runtime/catalog/openapi.go Outdated Show resolved Hide resolved
@chrischdi chrischdi force-pushed the pr-runtime-sdk-runtime-openapi-gen branch from 9bbd3cf to 18154e6 Compare May 12, 2022 06:44
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 12, 2022
* openapi-gen: modified upstream openapi-gen to generate zz_generated.openapi.go files
* runtime-openapi-gen consumes runtime SDK catalog and generated openapi spec to generate openapi yaml spec

Co-authored-by: Stefan Bueringer <buringerst@vmware.com>
Co-authored-by: Christian Schlotter <schlotterc@vmware.com>
@chrischdi
Copy link
Member Author

/retest

@chrischdi chrischdi changed the title ✨ [WIP] introduce runtime-openapi-gen to generate openapi spec on release ✨ introduce runtime-openapi-gen to generate openapi spec on release May 12, 2022
@sbueringer
Copy link
Member

Thx!

/lgtm
/assign @fabriziopandini

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 12, 2022
Copy link
Contributor

@killianmuldoon killianmuldoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working for me!

/lgtm

@fabriziopandini
Copy link
Member

@chrischdi great work!
After we got the first hooks let's audit together the resulting OpenAPI spec
/approve
/lgtm

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fabriziopandini

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 13, 2022
@k8s-ci-robot k8s-ci-robot merged commit dcfc799 into kubernetes-sigs:main May 13, 2022
@k8s-ci-robot k8s-ci-robot added this to the v1.2 milestone May 13, 2022
@chrischdi chrischdi deleted the pr-runtime-sdk-runtime-openapi-gen branch June 30, 2022 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/runtime-sdk Issues or PRs related to Runtime SDK cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants