-
Notifications
You must be signed in to change notification settings - Fork 3.2k
crd: Make CiliumNodeConfig available on v2 API #31721
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
crd: Make CiliumNodeConfig available on v2 API #31721
Conversation
481157d
to
c59ee93
Compare
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.
@doniacld Nice work Donia!
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.
Thanks for the PR. I have a few suggestions below.
Additionally, I note that this PR is promoting the CRD for a beta feature according to the docs. By doing this promotion, are we considering that this feature is no longer beta? If so, I haven't seen a discussion about what else needs to be done for this feature to be promoted? I am thinking about this comment. I realize that there isn't an easy criteria or path to follow so it might not be clear how to proceed. I'd suggest a Slack thread to begin the discussion and to follow up with a tracking issue for other work that might come up for promoting a feature. I'm not aware of any items personally but others might.
c59ee93
to
a48177a
Compare
a48177a
to
a2d38fe
Compare
a2d38fe
to
a50cec4
Compare
/test |
1 similar comment
/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.
@doniacld LGTM Thanks for the updates!
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, thanks!
040baa2
to
07fb394
Compare
/test |
94fa863
to
70a0022
Compare
/test |
This commit intens to turn CiliumNodeConfig feature to Limited. The CRD is now available in v2 and v2alpha1 API versions. The depreciation of v2alpha1 should be done in another commit. The yaml definition of `CiliumNodeConfig` is in `v2` directory but hold the two versions. Signed-off-by: Donia Chaiehloudj <donia.cld@isovalent.com>
70a0022
to
16cd482
Compare
/test |
Previously, Cilium would always fetch the v2alpha1 version of the CNC even if the v2 version was already found. Fetching the v2alpha1 triggers the deprecation warning from Kubernetes as it was deprecated in cilium#31721. Those warnings cause CI failures such as: ``` FAIL: Found 26 k8s-app=cilium logs matching list of errors that must be investigated: 2024-06-17T13:38:56.846200595Z time="2024-06-17T13:38:56Z" level=warning msg="cilium.io/v2alpha1 CiliumNodeConfig will be deprecated in cilium v1.16; use cilium.io/v2 CiliumNodeConfig" subsys=klog ``` Fixes: db0d41a ("crd, option: Make CiliumNodeConfig available on v2 API") Signed-off-by: Chris Tarazi <chris@isovalent.com>
Previously, Cilium would always fetch the v2alpha1 version of the CNC even if the v2 version was already found. Fetching the v2alpha1 triggers the deprecation warning from Kubernetes as it was deprecated in cilium#31721. Those warnings cause CI failures such as: ``` FAIL: Found 26 k8s-app=cilium logs matching list of errors that must be investigated: 2024-06-17T13:38:56.846200595Z time="2024-06-17T13:38:56Z" level=warning msg="cilium.io/v2alpha1 CiliumNodeConfig will be deprecated in cilium v1.16; use cilium.io/v2 CiliumNodeConfig" subsys=klog ``` Fixes: db0d41a ("crd, option: Make CiliumNodeConfig available on v2 API") Signed-off-by: Chris Tarazi <chris@isovalent.com>
Previously, Cilium would always fe F104 tch the v2alpha1 version of the CNC even if the v2 version was already found. Fetching the v2alpha1 triggers the deprecation warning from Kubernetes as it was deprecated in cilium#31721. Those warnings cause CI failures such as: ``` FAIL: Found 26 k8s-app=cilium logs matching list of errors that must be investigated: 2024-06-17T13:38:56.846200595Z time="2024-06-17T13:38:56Z" level=warning msg="cilium.io/v2alpha1 CiliumNodeConfig will be deprecated in cilium v1.16; use cilium.io/v2 CiliumNodeConfig" subsys=klog ``` Fixes: db0d41a ("crd, option: Make CiliumNodeConfig available on v2 API") Signed-off-by: Chris Tarazi <chris@isovalent.com>
Before, ciliumnodeconfigs were registered twice, causing conflict error on k8s apiserver. Example log: verb="POST" URI="/apis/apiextensions.k8s.io/v1/customresourcedefinitions" resp=409 Based on cilium-operator logs, we can see that we tried to create ciliumnodeconfigs CRD twice: Creating CRD [...] name=ciliumnodeconfigs.cilium.io ... Creating CRD [...] name=ciliumnodeconfigs.cilium.io Fixes: cilium#31721 Signed-off-by: Marcel Zieba <marcel.zieba@isovalent.com>
Before, ciliumnodeconfigs were registered twice, causing conflict error on k8s apiserver. Example log: verb="POST" URI="/apis/apiextensions.k8s.io/v1/customresourcedefinitions" resp=409 Based on cilium-operator logs, we can see that we tried to create ciliumnodeconfigs CRD twice: Creating CRD [...] name=ciliumnodeconfigs.cilium.io ... Creating CRD [...] name=ciliumnodeconfigs.cilium.io Fixes: #31721 Signed-off-by: Marcel Zieba <marcel.zieba@isovalent.com>
Add
CiliumNodeConfig CRD
on API v2. In this PR we intend to keep the CRD also on v2alpha1 and it will be removed in a next release.