✨ Introduce v1alpha2 version with APIResourceSchema object and conversion CLI tool#248
Conversation
Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com> On-behalf-of: @SAP karol.szwaj@sap.com
f5f3c48 to
b5a883c
Compare
Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com> On-behalf-of: @SAP karol.szwaj@sap.com
Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com> On-behalf-of: @SAP karol.szwaj@sap.com
|
ptal @mjudeikis and let me know wdyt |
|
This is on my review list for weekend! I'm pto today :) |
|
@mjudeikis I know! No worries |
mjudeikis
left a comment
There was a problem hiding this comment.
Main issue - tool writing back to cluster. We should make it optional at least.
There was a problem hiding this comment.
Pull Request Overview
This PR introduces a new v1alpha2 API version that defines the APIResourceSchema object and implements a conversion CLI tool (crd2apiresourceschema) to convert CRDs to APIResourceSchemas. Key changes include:
- Adding the v1alpha2 client-side implementations (including fake clients and scheme registrations).
- Creating the new API types and CRD definitions for APIResourceSchema.
- Implementing the conversion CLI tool along with supporting command and plugin logic.
Reviewed Changes
Copilot reviewed 41 out of 41 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| sdk/client/clientset/versioned/... | Adds v1alpha2 client implementations and registers the new API types. |
| sdk/apis/kubebind/v1alpha2/... | Introduces the new API types, deep copy functions, and registration for the APIResourceSchema. |
| deploy/crd/... | Provides CRD manifests for APIResourceSchema and APIConversion. |
| cli/pkg/crd2apiresourceschema/plugin/... | Implements the conversion logic and in-cluster creation for APIResourceSchemas. |
| cli/cmd/crd2apiresourceschema/... | Adds CLI command definitions and wiring for the new conversion tool. |
|
In general, it looks good. Let's give a day or so if @sttts wants to pitch in. |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Summary
Starting on v1alpha2 API version, introducing APIResourceSchema object.
Including
crd2apiresourceschematool that will convert CRDs from the cluster to APIResourceSchemas.Related issue(s)
Fixes #245
Release Notes