Skip to content

✨ Introduce v1alpha2 version with APIResourceSchema object and conversion CLI tool#248

Merged
mjudeikis merged 8 commits into
kbind-dev:mainfrom
cnvergence:introduce-api-resource-schema
May 6, 2025
Merged

✨ Introduce v1alpha2 version with APIResourceSchema object and conversion CLI tool#248
mjudeikis merged 8 commits into
kbind-dev:mainfrom
cnvergence:introduce-api-resource-schema

Conversation

@cnvergence

@cnvergence cnvergence commented Mar 28, 2025

Copy link
Copy Markdown
Member

Summary

Starting on v1alpha2 API version, introducing APIResourceSchema object.
Including crd2apiresourceschema tool that will convert CRDs from the cluster to APIResourceSchemas.

Related issue(s)

Fixes #245

Release Notes

Created new v1alpha2 API and introduce APIResourceSchema object with conversion CLI tool.

Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com>

On-behalf-of: @SAP karol.szwaj@sap.com
@cnvergence
cnvergence force-pushed the introduce-api-resource-schema branch from f5f3c48 to b5a883c Compare March 28, 2025 15:50
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
@cnvergence cnvergence changed the title Introduce v1alpha2/APIResourceSchema object ✨ Introduce v1alpha2 version with APIResourceSchema object and conversion CLI tool Apr 15, 2025
Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com>

On-behalf-of: @SAP karol.szwaj@sap.com
@cnvergence
cnvergence marked this pull request as ready for review April 22, 2025 13:33
@cnvergence
cnvergence requested a review from a team as a code owner April 22, 2025 13:33
Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com>

On-behalf-of: @SAP karol.szwaj@sap.com
@cnvergence

Copy link
Copy Markdown
Member Author

ptal @mjudeikis and let me know wdyt

@mjudeikis

Copy link
Copy Markdown
Contributor

This is on my review list for weekend! I'm pto today :)

@cnvergence

Copy link
Copy Markdown
Member Author

@mjudeikis I know! No worries
Just wanted an initial look, I'm happy to wait as I will just work on drafting another APIs

@mjudeikis mjudeikis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Main issue - tool writing back to cluster. We should make it optional at least.

Comment thread cli/pkg/crd2apiresourceschema/plugin/crd2apiresourceschema.go Outdated
Comment thread cli/pkg/crd2apiresourceschema/plugin/crd2apiresourceschema.go Outdated
Comment thread cli/pkg/crd2apiresourceschema/plugin/crd2apiresourceschema.go
Comment thread sdk/apis/kubebind/v1alpha2/apiresourceschema_types.go Outdated
Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com>

On-behalf-of: @SAP karol.szwaj@sap.com
On-behalf-of: @SAP karol.szwaj@sap.com
@cnvergence
cnvergence requested a review from mjudeikis April 29, 2025 10:52
@mjudeikis
mjudeikis requested review from Copilot and sttts April 30, 2025 07:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

Comment thread cli/pkg/crd2apiresourceschema/plugin/crd2apiresourceschema.go Outdated
Comment thread cli/pkg/crd2apiresourceschema/plugin/crd2apiresourceschema.go
@mjudeikis

Copy link
Copy Markdown
Contributor

In general, it looks good. Let's give a day or so if @sttts wants to pitch in.
I think as it's not yet used we can change bit later if something pops up when we start wiring these in.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@mjudeikis
mjudeikis merged commit 39d507b into kbind-dev:main May 6, 2025
@cnvergence
cnvergence deleted the introduce-api-resource-schema branch May 6, 2025 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Introduce APIResourceSchema object (v1alpha2 start). Will not be used yet.

3 participants