8000 crd: Make CiliumNodeConfig available on v2 API by doniacld · Pull Request #31721 · cilium/cilium · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Merged
merged 1 commit into from
May 14, 2024

Conversation

doniacld
Copy link
Contributor
@doniacld doniacld commented Apr 2, 2024

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.

Add `CiliumNodeConfig` CRD on API v2

@doniacld doniacld requested review from a team as code owners April 2, 2024 10:27
@doniacld doniacld requested review from christarazi and derailed April 2, 2024 10:27
@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Apr 2, 2024
@doniacld doniacld requested review from learnitall and jibi April 2, 2024 10:27
@doniacld doniacld force-pushed the pr/doniacld/move-config-per-node-to-v2 branch 2 times, most recently from 481157d to c59ee93 Compare April 2, 2024 12:31
@doniacld doniacld added area/agent Cilium agent related. and removed dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. labels Apr 2, 2024
@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Apr 2, 2024
@doniacld doniacld requested review from derailed and removed request for derailed April 2, 2024 16:12
@doniacld doniacld added release-note/minor This PR changes functionality that users may find relevant to operating Cilium. and removed dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. labels Apr 2, 2024
Copy link
Contributor
@derailed derailed left a 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!

@christarazi christarazi added the area/k8s Impacts the kubernetes API, or kubernetes -> cilium internals translation layers. label Apr 2, 2024
Copy link
Member
@christarazi christarazi left a 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.

@doniacld doniacld force-pushed the pr/doniacld/move-config-per-node-to-v2 branch from c59ee93 to a48177a Compare April 12, 2024 13:58
@doniacld doniacld requested a review from a team as a code owner April 12, 2024 13:58
@maintainer-s-little-helper
Copy link

@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-sign-off The author needs to add signoff to their commits before merge. label Apr 12, 2024
@doniacld doniacld force-pushed the pr/doniacld/move-config-per-node-to-v2 branch from a48177a to a2d38fe Compare April 16, 2024 09:15
@maintainer-s-little-helper
Copy link

@doniacld doniacld force-pushed the pr/doniacld/move-config-per-node-to-v2 branch from a2d38fe to a50cec4 Compare April 16, 2024 09:16
@doniacld
Copy link
Contributor Author

/test

1 similar comment
@doniacld
Copy link
Contributor Author

/test

@aanm aanm enabled auto-merge April 24, 2024 08:03
Copy link
Contributor
@derailed derailed left a 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!

Copy link
Contributor
@learnitall learnitall left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@doniacld doniacld force-pushed the pr/doniacld/move-config-per-node-to-v2 branch from 040baa2 to 07fb394 Compare May 7, 2024 07:55
@doniacld
Copy link
Contributor Author
doniacld commented May 7, 2024

/test

@doniacld doniacld force-pushed the pr/doniacld/move-config-per-node-to-v2 branch 2 times, most recently from 94fa863 to 70a0022 Compare May 14, 2024 07:56
@doniacld
Copy link
Contributor Author

/test

@doniacld doniacld removed the request for review from christarazi May 14, 2024 08:38
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>
@doniacld doniacld force-pushed the pr/doniacld/move-config-per-node-to-v2 branch from 70a0022 to 16cd482 Compare May 14, 2024 08:50
@doniacld
Copy link
Contributor Author

/test

@aanm aanm added this pull request to the merge queue May 14, 2024
@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label May 14, 2024
Merged via the queue into cilium:main with commit db0d41a May 14, 2024
64 checks passed
christarazi added a commit to christarazi/cilium that referenced this pull request Jun 20, 2024
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>
christarazi added a commit to christarazi/cilium that referenced this pull request Jun 26, 2024
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>
christarazi added a commit to christarazi/cilium that referenced this pull request Jul 24, 2024
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>
marseel added a commit to marseel/cilium that referenced this pull request May 14, 2025
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>
github-merge-queue bot pushed a commit that referenced this pull request May 16, 2025
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/agent Cilium agent related. area/k8s Impacts the kubernetes API, or kubernetes -> cilium internals translation layers. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/minor This PR changes functionality that users may find relevant to operating Cilium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants
0