-
Notifications
You must be signed in to change notification settings - Fork 772
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
installing kyverno as helm dependency fails when trying to use CustomResourceDefinition #2783
Comments
Thanks for opening your first issue here! Be sure to follow the issue template! |
Hey @domruf - Seems like this is a more general problem with Helm 3. See:
Please correct me if I'm wrong. |
@ojhaarjun1 thanks for your comment. I'm quite new to helm, so I'm not sure either. My understanding so far is, that CRDs should be put into the ./crds instead of the ./templates. That way they are installed before the 'normal' resources. So, I think ./templates/crds.yaml should be moved to ./crds/crds.yaml. |
@domruf - the problem encountered with putting CRDs in the There have been multiple attempts to achieve the right Helm UX for CRD handling, see: #2565, #2355, #2671. We are open to suggestions or guidance on what works best. cc: @treydock |
@domruf You can not have the The other big project I know of that puts CRDs into the template directory is cert-manager, and for that reason you can't deploy cert-manager issuers in same Helm chart since they use the CRDs. In the case of cert-manager their CRDs are opt-in for Helm, but Kyverno does opt-out CRDs as a template to improve user experience for Helm users. If it would be beneficial, one option is setting |
@domruf - Can we close this issue? |
@ojhaarjun1 yes thanks |
Software version numbers
Describe the bug
When tyring to install kyverno as a dependency in my own helm chart I get this error
Error: unable to build kubernetes objects from release manifest: unable to recognize "": no matches for kind "ClusterPolicy" in version "kyverno.io/v1"
To Reproduce
add
to your Chart.yaml and call
helm upgrade --install --atomic myrelease .
Expected behavior
kyverno gets installed.
Instead I get the error mentioned above.
The text was updated successfully, but these errors were encountered: