Skip to content
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

Cant pull helm chart with ArgoCD #4895

Closed
mrksph opened this issue Nov 23, 2024 · 8 comments
Closed

Cant pull helm chart with ArgoCD #4895

mrksph opened this issue Nov 23, 2024 · 8 comments
Labels
kind/support Categorizes issue or PR as a support question.

Comments

@mrksph
Copy link

mrksph commented Nov 23, 2024

Hello!
Im using ArgoCD to deploy services to my k3s cluster in my homelab. I want to add external-dns]. I've added it succesfully using Helm CLI to the cluster. But when using ArgoCD, it is failing with the following error:

Failed to load target state: 
failed to generate manifest for source 1 of 1: 
rpc error: code = Unknown desc = error fetching chart: 
failed to fetch chart: failed to get command args to log: `helm pull --destination /tmp/bd513b51-3a95-4031-95ae-eaf63054b2b7 --version 8.6.0 --repo https://charts.bitnami.com/bitnami bitnami/external-dns` failed 
exit status 1: Error: chart "bitnami/external-dns" version "8.6.0" not found in https://charts.bitnami.com/bitnami repository

I was following a YouTube tutorial where the author was using helmfile instead of ArgoCD, here is the repo from the video: https://github.com/dreamsofautonomy/homelab/blob/main/helm/helmfile.yaml
I was just trying to "translate" what he did with helmfile to ArgoCD but I'm stuck right now at this point.

Any help is appreciated!

@mrksph mrksph added the kind/support Categorizes issue or PR as a support question. label Nov 23, 2024
@patrickleet
Copy link

patrickleet commented Nov 27, 2024

I'm also seeing this, but deployed via crossplane and helm provider.

I've been running it for awhile though, only 8.6.0 isn't working for me

failed to upgrade release: failed to pull chart: invalid_reference: invalid tag

Reverting to the previous version I was using, 8.5.1 is working

I do see it in helm search though...

NAME                    CHART VERSION   APP VERSION     DESCRIPTION                                       
bitnami/external-dns    8.6.0           0.15.0          ExternalDNS is a Kubernetes addon that configur...
bitnami/external-dns    8.5.1           0.15.0          ExternalDNS is a Kubernetes addon that configur...
bitnami/external-dns    8.5.0           0.15.0          ExternalDNS is a Kubernetes addon that configur...
bitnami/external-dns    8.4.0           0.15.0          ExternalDNS is a Kubernetes addon that configure...

🤔

@mrksph
Copy link
Author

mrksph commented Dec 4, 2024

I'm also seeing this, but deployed via crossplane and helm provider.

I've been running it for awhile though, only 8.6.0 isn't working for me

failed to upgrade release: failed to pull chart: invalid_reference: invalid tag

Reverting to the previous version I was using, 8.5.1 is working

I do see it in helm search though...

NAME                    CHART VERSION   APP VERSION     DESCRIPTION                                       
bitnami/external-dns    8.6.0           0.15.0          ExternalDNS is a Kubernetes addon that configur...
bitnami/external-dns    8.5.1           0.15.0          ExternalDNS is a Kubernetes addon that configur...
bitnami/external-dns    8.5.0           0.15.0          ExternalDNS is a Kubernetes addon that configur...
bitnami/external-dns    8.4.0           0.15.0          ExternalDNS is a Kubernetes addon that configure...

🤔

FYI, I made it work using a different repo:

repoURL: https://kubernetes-sigs.github.io/external-dns
chart: external-dns
targetRevision: 1.15.0

@cgarcia-l
Copy link

I seem to be having the same problem, in my case it is with the helm chart of thanos which is also from bitnami

@mrksph
Copy link
Author

mrksph commented Dec 4, 2024

Have you tried to use a different helm chart repository (if it's available)?

@cgarcia-l
Copy link

No, I haven't tried a different Helm chart repository since, in the case of Thanos, the most well-known and widely used repository is the Bitnami one.

It's quite strange because it works perfectly fine with version 15.8.1, but it doesn't seem to work with versions 15.8.2, 15.8.3, and 15.8.4.

These versions do exist in the repository:

❯ helm search repo bitnami/thanos --versions
NAME          	CHART VERSION	APP VERSION	DESCRIPTION
bitnami/thanos	15.8.4       	0.37.1     	Thanos is a highly available metrics system tha...
bitnami/thanos	15.8.3       	0.37.0     	Thanos is a highly available metrics system tha...
bitnami/thanos	15.8.2       	0.37.0     	Thanos is a highly available metrics system tha...
bitnami/thanos	15.8.1       	0.36.1     	Thanos is a highly available metrics system tha...
bitnami/thanos	15.8.0       	0.36.1     	Thanos is a highly available metrics system tha...

Other Helm charts and repositories I have deployed, such as external-dns (where I use the kubernetes-sigs repository), don't seem to have any issues. The problem appears to be specific to this repository.

@Raffo
Copy link
Contributor

Raffo commented Dec 5, 2024

I'm happy for you to have this discussion here, but I want to point out that this project doesn't have any relationship with helm charts hosted anywhere else. Also, using Argo or other tools makes no difference from the point of view of what we do.

@TMigue
Copy link

TMigue commented Dec 5, 2024

Hello! Probably your issue is occuring because your chart URL is pointing to the https endpoint. Since november 18th, bitnami only stores their charts as OCI artifacts (more info here)

Try modifying your bitnamy chart url from:
https://charts.bitnami.com/bitnami

to:
oci://registry-1.docker.io/bitnamicharts

@mrksph
Copy link
Author

mrksph commented Dec 5, 2024

Thanks @TMigue I remember I tried using OCI artifacts repo but maybe I didnt set the correct URL. Im closing this one

@mrksph mrksph closed this as completed Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Categorizes issue or PR as a support question.
Projects
None yet
Development

No branches or pull requests

5 participants