-
Notifications
You must be signed in to change notification settings - Fork 688
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 3 fails to install CRDs #2057
Comments
Helm 3 deprecated the hook for crds and has now a policy that there should be a crd directory |
Just hit this as well. Any time estimate on a fix? |
The current chart (at stable/ambassador) should work for both Helm 2 and Helm 3. You'll still see the "unknown hook" error with Helm 3, but it will create the CRDs anyway. Let me know if that's your situation... |
This should be resolved as of Nov 29th 2019 with helm/charts#19225. Make sure you Please reopen this issue if you see different behavior. |
I still (or again?) see these errors when installing from the datawire repo with Helm 3. Should I re-create an issue over there or can this be reused? |
@bcorijn you will see the This hook has been deprecated in Helm 3 so it is throwing an error but the chart should still be installing correctly. Can you confirm the chart installs in your cluster? |
I can confirm, error is present in helm 3. |
As for Feb 4, 2020:
Error presents: |
Just hit this issue with helm 3.1.1. Note: this happens only for me with helm template. (crd are not generated) helm install works properly, with warnings. |
Per the documentation (https://www.getambassador.io/user-guide/helm/) this is an issue with Helm 3 and it can be ignored. This is not a bug that can be addressed in Ambassador. |
would it be possible to avoid these warnings if the helm chart used the CRD folder for Helm3, while still supporting the crd-hooks for Helm v2? I understand that these are warnings only, but ideally, the install can run clean for Helm v3 users. In my case, I am running this helm through AWS CDK and it causes a failure in the stack (this is an issue with Amazon's CDK), but if this chart did not throw this warning it would work fine and comply with the Helm V3 specification. |
Method 1: Let helm Do It For You Some caveats (and explanations) The --dry-run flag of helm install and helm upgrade is not currently supported for CRDs. The purpose of "Dry Run" is to validate that the output of the chart will actually work if sent to the server. But CRDs are a modification of the server's behavior. Helm cannot install the CRD on a dry run, so the discovery client will not know about that Custom Resource (CR), and validation will fail. You can alternatively move the CRDs to their own chart or use helm template instead. Another important point to consider in the discussion around CRD support is how the rendering of templates is handled. One of the distinct disadvantages of the crd-install method used in Helm 2 was the inability to properly validate charts due to changing API availability (a CRD is actually adding another available API to your Kubernetes cluster). If a chart installed a CRD, helm no longer had a valid set of API versions to work against. This is also the reason behind removing templating support from CRDs. With the new crds method of CRD installation, we now ensure that helm has completely valid information about the current state of the cluster. Method 2: Separate Charts In this method, each chart must be installed separately. However, this workflow may be more useful for cluster operators who have admin access to a cluster |
Describe the bug
If you install the helm chart from the
stable
repository via helm3.0.0
, the CRDs will not be installed.To Reproduce
No CRDs are registered as the following command does not return anything:
$ kubectl get crd --all-namespaces | grep ambassador
Expected behavior
CRDs should be installed and the following command should show at least a single CRD:
$ kubectl get crd --all-namespaces | grep ambassador NAME CREATED AT something.getambassador.io 2019-11-17T13:12:50Z
Versions (please complete the following information):
4.4.7
, app version:0.85.0
)v1.15.5
)Additional context
This bug is tracked in the helm/charts#19008 already, but I wanted to make sure that you guys are aware as the helm chart is currently unusable.
The text was updated successfully, but these errors were encountered: