-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
(helm/v1-alpha) Generates invalid chart in operator without webhooks #4582
Comments
Thank you for raising this one !!! |
Hi @erikgb
This scenario is tested here: We validate it with the CI. So, it seems that that is not the root cause. |
Ok, then it's probably something with our project. Not very easy to keep up with the rescaffolding. Thanks for looking into this. |
Hi @erikgb I test out with your project and kubebuilder from master
And I could find the issue. I validate the getting-started and I could |
Bug Report: Helm Plugin Scaffold Issue with Webhook ConversionHi @erikgb, I found a bug in the scaffold of the Helm Plugin that we need to address. Please see the PR linked to this issue. However, note that your project was scaffolded with older versions of Kubebuilder. Unfortunately, in the past, webhook conversion was added but not properly/fully implemented. Now that we have been working on ensuring that the project has been fully converted and implemented webhooks conversion, this issue has surfaced. Recommended ActionI would recommend manually applying the fixes to your project. Specifically, you should remove Relevant Fixes
Summary**To resolve this scaffolded issue, you mainly need to apply the changes of #4280. Let me know if you need further assistance! Thanks. And please feel free to review the PR: #4584 |
What broke? What's expected?
We are considering providing a simple Helm chart to install https://github.com/statnett/image-scanner-operator - even if it is currently marked as an eschewed feature. 😉 So I am testing the new Helm plugin in kubebuilder, but it generates an invalid chart:
To me, it seems like the generator uses values not declared in
values.yaml
of the Helm chart - when the operator has no webhooks.This is the output from kubebuilder:
Reproducing this issue
I would assume the issue is reproducible by scaffolding a new operator without webhooks but with CRDs. Then try generating the Helm chart. And then template the chart.
KubeBuilder (CLI) Version
4.5.0
PROJECT version
3
Plugin versions
Other versions
No response
Extra Labels
No response
The text was updated successfully, but these errors were encountered: