-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
k8s: api: clean up CRD versioning #24671
Conversation
035799c
to
f7f95f6
Compare
/test |
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.
LGTM except for the version which should follow Andre's comment above.
f7f95f6
to
74fda7f
Compare
/test Job 'Cilium-PR-K8s-1.24-kernel-5.4' failed: Click to show.Test Name
Failure Output
If it is a flake and a GitHub issue doesn't already exist to track it, comment Job 'Cilium-PR-K8s-1.26-kernel-net-next' failed: Click to show.Test Name
Failure Output
If it is a flake and a GitHub issue doesn't already exist to track it, comment |
The `v2` and `v2alpha1` variants of CustomResourceDefinitionGroup are just indirections of the same constant. The operator's CRD code needs to handle both v2 and v2alpha1 CRDs. Make it clear that the used CustomResourceDefinitionGroup isn't tied to v2. Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
Both v2 and v2alpha1 use the same label string for the CRD Schema Version. Add a shared constant to clarify that the relevant operator code isn't actually tied to v2. Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
We've been maintaining distinct CRD Schema versions for v2 and v2alpha1. But the operator actually only cared about the v2 version. So make it clear that this is a shared version across both v2 and v2alpha1. Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
The update test failed in two runs (https://jenkins.cilium.io/job/Cilium-PR-K8s-1.16-kernel-4.19/749/, https://jenkins.cilium.io/job/Cilium-PR-K8s-1.26-kernel-net-next/1602/). Maybe because the branch didn't have #24676, or maybe because it's not actually resolved yet (#24687). Let's rebase and find out. |
74fda7f
to
b3554ee
Compare
/test |
Clean up some confusion in the
v2
/v2alpha1
versioning for CRDs. Turns out theCustomResourceDefinitionSchemaVersion
forv2alpha1
isn't actually used anymore.