-
Notifications
You must be signed in to change notification settings - Fork 424
✨ create apis/v1alpha2, add new ResourceSchemas #3318
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
Conversation
|
Skipping CI for Draft Pull Request. |
|
/test all |
mjudeikis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think few things are missing here:
- Conversion webhook for v1alpha1 to v1alpha2
- I would really like it to be split in commits:
All API changes and webhook into 1 commit
Sed replace changes to another.
But Im in the same boat as you for the approach. @sttts - we need your guidance here :)
Will do, for rebasing it was just simpler to keep it locally as 1 commit for now. |
05c99d7 to
ba86ec7
Compare
|
/test all |
|
/test all |
bbc80c8 to
b6aabe3
Compare
|
/test all |
|
/test all |
|
/retest |
420ae6d to
6cfc601
Compare
|
Most issues addressed. Just checkiner where I broke restmapper :/ |
6cfc601 to
128d3b0
Compare
|
/retest |
|
/retest |
5e85e28 to
2646a55
Compare
|
/hold |
On-behalf-of: @SAP [email protected] Signed-off-by: Mangirdas Judeikis <[email protected]>
2646a55 to
ae57d92
Compare
|
/retest |
|
/hold cancel |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sttts 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 142 out of 144 changed files in this pull request and generated 1 comment.
Files not reviewed (2)
- config/crds/apis.kcp.io_apiexports.yaml-patch: Language not supported
- hack/update-codegen-clients.sh: Language not supported
Comments suppressed due to low confidence (1)
pkg/reconciler/apis/apibinding/apibinding_indexes.go:30
- The comment still refers to spec.latestResourceSchemas while the code now uses spec.Resources. Please update the comment to accurately reflect the new field.
// indexAPIExportsByAPIResourceSchemasFunc is an index function that maps an APIExport to its spec.latestResourceSchemas.
|
/lgtm |
|
@xrstf: you cannot LGTM your own PR. In response to this:
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. |
|
/lgtm |
|
LGTM label has been added. Git tree hash: 3e878f3532912ef1c055a4c1be28abac96722608
|
Summary
This PR adds a new version to the
apis.kcp.ioAPI,v1alpha2. This new version only contains the slightly updated APIExports, which now support a more elaborate configuration structure to enable virtual resources in the future.All the code was updated to refer to
v1alpha2.APIExports.Conversion between the two versions is handled by a wrapper around the stock CR Converter, see individual commits for more information.
Related issue(s)
Fixes #3301
TODO:
Confirmed that if you add a new type into a new API and don't sort converters, all stuff just explodes in tests and generation :) which is good!
Release Notes