kcp icon indicating copy to clipboard operation
kcp copied to clipboard

✨ Add OpenAPI Schema support to virtual workspace framework

Open palnabarun opened this issue 1 year ago • 9 comments

Summary

Add OpenAPI Schema support to virtual workspace framework.

The implementation taps into the CreateServingInfo path to generate the spec and adds a handler to VW apiserver for handling the request and updating the OpenAPI v3 service caches.

TODO: OpenAPI v2 support and structuring the code for merge.

Related issue(s)

None

Release Notes

TODO: Before merge.

palnabarun avatar Dec 12 '23 13:12 palnabarun

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please assign sttts for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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

kcp-ci-bot avatar Dec 12 '23 13:12 kcp-ci-bot

Hi @palnabarun. Thanks for your PR.

I'm waiting for a kcp-dev member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

kcp-ci-bot avatar Dec 12 '23 13:12 kcp-ci-bot

Can you add an e2e test? Am interested to see the schema for exported and claimed resources (both APIResourceSchemas and native resources) of an APIExport.

sttts avatar Dec 12 '23 17:12 sttts

Can you add an e2e test? Am interested to see the schema for exported and claimed resources (both APIResourceSchemas and native resources) of an APIExport.

@sttts Sure. I will explore the tests. Can you also add the ok-to-test label so that the usual tests run on the PR?

palnabarun avatar Dec 14 '23 08:12 palnabarun

/ok-to-test

sttts avatar Dec 14 '23 12:12 sttts

I think I might need this. I'm trying to implement a virtual workspace using the fixedgvs abstraction, but it keeps blowing up with "OpenAPIV3 config must not be nil".

xrstf avatar Apr 08 '24 10:04 xrstf

Issues go stale after 90d of inactivity. After a furter 30 days, they will turn rotten. Mark the issue as fresh with /remove-lifecycle stale.

If this issue is safe to close now please do so with /close.

/lifecycle stale

kcp-ci-bot avatar Jul 10 '24 20:07 kcp-ci-bot

/remove-lifecycle stale

embik avatar Jul 11 '24 06:07 embik

Hey @palnabarun, the 1.30 rebase is done now. Would you be interested in picking up this work again?

embik avatar Aug 08 '24 12:08 embik