Skip to content
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: Pick up github.com/cilium/cilium v1.16.1 #2935

Closed
wants to merge 1 commit into from

Conversation

michi-covalent
Copy link
Contributor

This new version of Cilium updates k8s.io/code-generator dependency, and generate-groups.sh is no longer supported 1. Update pkg/k8s/Makefile to use kube_codegen.sh. One could only assume that this migration is successful since it's generating identical code. k8s-code-gen.sh is copied from cilium/cilium 2 and modified for Tetragon.

See apiextensions docs 3 regarding x-kubernetes-list-type field in CRDs.

Footnotes

  1. https://github.com/kubernetes/code-generator/commit/2e5be312636d3c77fb42ba37cedd4707968608a0

  2. https://github.com/cilium/cilium/blob/main/contrib/scripts/k8s-code-gen.sh

  3. https://pkg.go.dev/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions

@michi-covalent michi-covalent added the release-note/misc This PR makes changes that have no direct user impact. label Sep 19, 2024
@michi-covalent michi-covalent force-pushed the pr/michi/bump-cilium branch 3 times, most recently from 7233e91 to d26962e Compare September 19, 2024 02:14
This new version of Cilium updates k8s.io/code-generator dependency, and
generate-groups.sh is no longer supported [^1]. Update pkg/k8s/Makefile
to use kube_codegen.sh. One could only assume that this migration is
successful since it's generating identical code. k8s-code-gen.sh is
copied from cilium/cilium [^3] and modified for Tetragon.

See apiextensions docs [^2] regarding x-kubernetes-list-type field in
CRDs.

[^1]: kubernetes/code-generator@2e5be31
[^2]: https://pkg.go.dev/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions
[^3]: https://github.com/cilium/cilium/blob/main/contrib/scripts/k8s-code-gen.sh

Signed-off-by: Michi Mutsuzaki <[email protected]>
@mtardy
Copy link
Member

mtardy commented Sep 30, 2024

oh no I already did this work, merged it, reversed it, and retried again recently, hope it didn't take you too much time. This should work now thanks to some fixes I did to controller-tools: #2911. I need to rebase soonish.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants