Open rgoldfinger-quizlet opened 4 years ago
Facing the same issue. From what I gather, ArgoCD picks the helm version here: https://github.com/argoproj/argo-cd/blob/master/util/helm/helmver.go#L57
Also, traefik v2 helm chart from https://containous.github.io/traefik-helm-chart includes two apiVersion
statements to declare both compatibility to helm 2 and helm 3. I am guessing this is the root cause.
Same problem here with Traefik. I might be overlooking something, but I'm not seeing the two apiVersion
statements; I just see v1
here. Doesn't seem like an Argo CD problem to me. Just installing the CRDs separately from the chart in Argo CD for now. 🤷
I have the same problem. I guess it's caused because argo-cd uses helm template
under the hood instead of install
@randrusiak - Please check if your Chart's apiVersion is v1. If so it has to be changed to apiVersion: v2
https://helm.sh/docs/topics/v2_v3_migration/
Thanks @ckeragala for pointing this out. Discovered your comment after hours of scratching my head over why CRDs from an upstream project weren't being deployed.
FYI to anyone with this issue in an upstream chart (off-the-shelf) you can place the manifest of your CRDs into the templates folder of your "chart" that is referencing the upstream as a workaround.
As a workaround, you can always force the application to use Helm v3 as it should handle the charts in both versions (apiVersion: v1
and apiVersion: v2
).
apiVersion: argoproj.io/v1alpha1
kind: Application
# ...
spec:
source:
# ...
helm:
# ...
version: v3
# ...
I am still struggling with this and can't get past 3.2.x :/
Any advice?
In case you end up here you might have the same problem as me. Don't forget to whitelist the helm chart in the sourceRepos list in the AppProject!
Checklist:
argocd version
.Describe the bug
When installing a Helm chart that includes CRD's, the CRD's are not installed.
To Reproduce
Install the following application:
The installation fails because the CRD's are missing.
Expected behavior
The CRD's included in the chart are installed.
Version