Skip to content

Conversation

@xrstf
Copy link
Contributor

@xrstf xrstf commented Feb 20, 2025

Summary

Not all Kube environments use CRDs to create APIs. Some, like Gardener, use apiextensions and aggregation to make new APIs available.

This PR extends the sync agent to be able to handle these. After trying for 2 days learning new things for 2 days I noticed that kcp's crd-puller can already do everything we need, so I just integrated it into our discovery mechanism.

I tested this against a Gardener environment and provided a basic integration test using core/v1 (as an instance of any non-CRD API group).

Related issue(s)

Fixes #27

Release Notes

Support for non-CRD based types in PublishedResources (the agent now supports all API resources, like kcp's crd-puller)

@kcp-ci-bot kcp-ci-bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. dco-signoff: yes Indicates the PR's author has signed the DCO. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Feb 20, 2025
@xrstf xrstf requested a review from embik March 5, 2025 13:28
Copy link
Member

@embik embik left a comment

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 Mar 6, 2025
@kcp-ci-bot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 0faf363fcf6f5605ad7037bc46c39e6d6b04a5ba

@kcp-ci-bot
Copy link
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

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 Mar 6, 2025
@kcp-ci-bot kcp-ci-bot merged commit 5d43eb0 into main Mar 6, 2025
11 checks passed
@kcp-ci-bot kcp-ci-bot deleted the openapi-crds branch March 6, 2025 19:04
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. 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/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feature: support for publishing non-CRD resources

4 participants