Skip to content

Handle API lifecycle#62

Merged
kcp-ci-bot merged 26 commits into
mainfrom
api-lifecycle
May 22, 2025
Merged

Handle API lifecycle#62
kcp-ci-bot merged 26 commits into
mainfrom
api-lifecycle

Conversation

@xrstf

@xrstf xrstf commented May 21, 2025

Copy link
Copy Markdown
Contributor

Summary

This PR extends the Agent's support for handling the lifecycle of CRDs. Notably, updates to CRDs are now reflected in kcp.

This PR started as #61, but then I noticed that even though APIConversions are a documented feature of kcp, they have in fact been entirely removed from kcp 2 years ago, except for their API types. So I forked #61 and trimmed it down to everything else.

This means even though the agent can now handle CRD updates and even multiple versions, there is absolutely no support whatsoever for conversions.

What Type of PR Is This?

/kind feature

Related Issue(s)

Fixes #12

Release Notes

* handle CRD updates (create new APIResourceSchemas, update APIExports)
* allow to select and publish more than one version of each CRD

xrstf added 24 commits May 16, 2025 16:33
…esource

On-behalf-of: @SAP christoph.mewes@sap.com
On-behalf-of: @SAP christoph.mewes@sap.com
…VK anymore)

On-behalf-of: @SAP christoph.mewes@sap.com
…on logic accessibility

On-behalf-of: @SAP christoph.mewes@sap.com
…n reconciling APIExports

On-behalf-of: @SAP christoph.mewes@sap.com
…local/remote GVKs

On-behalf-of: @SAP christoph.mewes@sap.com
…ometimes?)

On-behalf-of: @SAP christoph.mewes@sap.com
On-behalf-of: @SAP christoph.mewes@sap.com
Since a CRD has a _list_ of versions, there is no risk of running into map collisions when renaming
versions, so we can slim down our API to just a map, no individual steps.

On-behalf-of: @SAP christoph.mewes@sap.com
On-behalf-of: @SAP christoph.mewes@sap.com
On-behalf-of: @SAP christoph.mewes@sap.com
On-behalf-of: @SAP christoph.mewes@sap.com
On-behalf-of: @SAP christoph.mewes@sap.com
…ier, adjust it to the new logic

On-behalf-of: @SAP christoph.mewes@sap.com
On-behalf-of: @SAP christoph.mewes@sap.com
On-behalf-of: @SAP christoph.mewes@sap.com
On-behalf-of: @SAP christoph.mewes@sap.com
On-behalf-of: @SAP christoph.mewes@sap.com
On-behalf-of: @SAP christoph.mewes@sap.com
On-behalf-of: @SAP christoph.mewes@sap.com
On-behalf-of: @SAP christoph.mewes@sap.com
@kcp-ci-bot kcp-ci-bot added release-note-none Denotes a PR that doesn't merit a release note. dco-signoff: yes Indicates the PR's author has signed the DCO. do-not-merge/needs-kind Indicates a PR lacks a `kind/foo` label and requires one. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels May 21, 2025
On-behalf-of: @SAP christoph.mewes@sap.com
@kcp-ci-bot kcp-ci-bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed release-note-none Denotes a PR that doesn't merit a release note. labels May 21, 2025
@embik

embik commented May 21, 2025

Copy link
Copy Markdown
Member

/kind feature

@kcp-ci-bot kcp-ci-bot added kind/feature Categorizes issue or PR as related to a new feature. and removed do-not-merge/needs-kind Indicates a PR lacks a `kind/foo` label and requires one. labels May 21, 2025
On-behalf-of: @SAP christoph.mewes@sap.com
@xrstf

xrstf commented May 21, 2025

Copy link
Copy Markdown
Contributor Author

/retest

@embik embik left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/approve

@kcp-ci-bot kcp-ci-bot added the lgtm Indicates that a PR is ready to be merged. label May 22, 2025
@kcp-ci-bot

Copy link
Copy Markdown
Contributor

LGTM label has been added.

DetailsGit tree hash: 43dd2caa99d5854f9e30eeb8c48a6dcd462f2d0c

@kcp-ci-bot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: embik

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

The pull request process is described here

Details 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 kcp-ci-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 22, 2025
@kcp-ci-bot kcp-ci-bot merged commit cbce4fc into main May 22, 2025
9 checks passed
@kcp-ci-bot kcp-ci-bot deleted the api-lifecycle branch May 22, 2025 07:59
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. dco-signoff: yes Indicates the PR's author has signed the DCO. kind/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. 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.

feature: actively manage lifecycle of resource schemas

3 participants