-
Notifications
You must be signed in to change notification settings - Fork 2
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
base: main
Are you sure you want to change the base?
Conversation
a60ec58
to
179dde6
Compare
179dde6
to
72293bb
Compare
@@ -31,6 +31,7 @@ func init() { | |||
// ControlPlane is the Schema for the controlplanes API | |||
// | |||
// +genclient | |||
// +kubebuilder:storageversion |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
overall LGTM, nits
Co-authored-by: Jakub Warczarek <[email protected]>
Letting @mlavacca chip in on the review and thus leaving this unmerged for now. |
What this PR does / why we need it:
This PR adds a
ControlPlane
version:v2alpha1
which contains the following breaking changes with respect tov1beta1
:deployment
fielddataplane
field from*string
to a typed union field which can be set to either a url (of Admin API) or a name ofDataPlane
resource (the same use case as with olddataplane
field)featureGates
,controllers
andadminAPI
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
:CHANGELOG.md
release notes have been updated to reflect significant changes