-
Notifications
You must be signed in to change notification settings - Fork 360
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: Fix CRDs Go code generation #2339
Conversation
This reverts commit a9c509f. The reverted commit replaced execution of deprecated scripts with k8s.io/code-generator/kube_codegen.sh. However, kube_codegen.sh doesn't generate code on its own, but rather defines helper functions. To migrate to kube_codegen.sh we'll need to call these functions from another script. Additionally, it'll change with version 1.30 of k8s libraries - that's why I opted to simply revert the change for now. When k8s libraries are updated to 1.30, the code generation scripts should be updated too. Signed-off-by: Anna Kapuscinska <anna@isovalent.com>
CRD Go code generation wasn't working recently, so some changes to CRDs aren't reflected in the generated helpers. This commit fixes that. Signed-off-by: Anna Kapuscinska <anna@isovalent.com>
f3a2190
to
a1961a7
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.
Thanks Anna!
I can create an issue so that we don't forget to update, to note that it's marked as deprecated if you want :) |
@mtardy sure, feel free to open an issue. K8s dependencies are generally updated together with cilium/cilium, right? |
yet it should be for minor versions. |
Feel free to edit the content if it's unclear #2349. |
Commit a9c509f replaced execution of deprecated scripts with
k8s.io/code-generator/kube_codegen.sh. However, kube_codegen.sh doesn't generate
code on its own, but rather defines helper functions. To migrate to
kube_codegen.sh we'll need to call these functions from another script.
Additionally, it'll change with version 1.30 of k8s libraries - that's why I
opted to simply revert the change for now. When k8s libraries are updated to
1.30, the code generation scripts should be updated too.