Skip to content

chore: add v2alpha1 group and add ControlPlane type #441

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

pmalek
Copy link
Member

@pmalek pmalek commented May 22, 2025

What this PR does / why we need it:

This PR adds a ControlPlane version: v2alpha1 which contains the following breaking changes with respect to v1beta1:

  • removal of deployment field
  • changing dataplane field from *string to a typed union field which can be set to either a url (of Admin API) or a name of DataPlane resource (the same use case as with old dataplane field)
  • adding featureGates, controllers and adminAPI fields. The first 2 have string based arrays instead of strongly types fields (most likely the direction we'll move forward with but can potentially be changed based on feedback).

CRD validation tests have not been added (yet) to allow feedback which could influence the design.

Which issue this PR fixes

Part of Kong/gateway-operator#1358

Special notes for your reviewer:

Further changes to the new v2alpha1 API (like new, individual fields) will be added when this PR gets reviewed so that throw away work is avoided.

PR Readiness Checklist:

Complete these before marking the PR as ready to review:

  • the CHANGELOG.md release notes have been updated to reflect significant changes

@pmalek pmalek added this to the KO v2.0.0-alpha.1 milestone May 22, 2025
@pmalek pmalek self-assigned this May 22, 2025
@pmalek pmalek force-pushed the ko-controlplane-crd branch 3 times, most recently from a60ec58 to 179dde6 Compare May 28, 2025 14:48
@pmalek pmalek force-pushed the ko-controlplane-crd branch from 179dde6 to 72293bb Compare May 28, 2025 14:55
@pmalek pmalek marked this pull request as ready for review May 28, 2025 15:04
@pmalek pmalek requested a review from a team as a code owner May 28, 2025 15:04
@@ -31,6 +31,7 @@ func init() {
// ControlPlane is the Schema for the controlplanes API
//
// +genclient
// +kubebuilder:storageversion
Copy link
Member Author

Choose a reason for hiding this comment

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

The storage version will move to v2alpha1 when we progress with it and get closer to the release.

Copy link
Member

@programmer04 programmer04 left a comment

Choose a reason for hiding this comment

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

overall LGTM, nits

@pmalek pmalek requested a review from mlavacca June 2, 2025 16:17
@pmalek
Copy link
Member Author

pmalek commented Jun 2, 2025

Letting @mlavacca chip in on the review and thus leaving this unmerged for now.

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.

2 participants