Terraform-provider-helm: v0.10.5 is failing due to stable repo move

Created on 21 Dec 2020  ·  14Comments  ·  Source: hashicorp/terraform-provider-helm

Terraform, Provider, Kubernetes and Helm Versions

Terraform version: 0.13.05
Provider version: 0.10.5
Kubernetes version:  1.15.2
Helm version: 2.16.8

Affected Resource(s)

Error: error initializing local helm home: Looks like "https://kubernetes-charts.storage.googleapis.com" is not a valid chart repository or cannot be reached: Failed to fetch https://kubernetes-charts.storage.googleapis.com/index.yaml : 403 Forbidden

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment
HelmV2 bug

Most helpful comment

I am cutting a release for v0.10.6 now @savvys.

All 14 comments

Hi @dfry, as of our v2.0.0 provider release, we are no longer supporting Helm 2. It is explained in our upgrade guide

I'm seeing this error using helm v3.3.3 also.

I'm seeing this with helm version v3.4.4

Looks like the old URL is hard-coded into the 0.10.5 version of the provider here: https://github.com/hashicorp/terraform-provider-helm/blob/v0.10.5/helm/provider.go#L452

Based on their blog post it sounds like the stable repo is deprecated and will eventually be garbage collected, but they're going to keep what's there around as an archive.

I'm going to cut a hotfix release to change the URL in the old provider so folks stuck maintaining legacy aren't left hanging, but after this please upgrade to the latest provider version! You'll have to fork this repo to keep supporting this if you don't.

@aareet For me, the error comes before any repos exist. I run terraform in a docker container, so its fresh everytime. There are no repos to update with helm repo update

I'm now checking on upgrading to Helm3 right now, but as mentioned the url is hardcoded in 0.10.x provider version, anyhow if this can help somehow I had a local cache of that file from some days ago.

Provider 0.10.5
I understand the URLs are hardcoded.
Post the fix, will we be able to use the Provider 0.10.5 ? Or the fix will be done only for the latest release of helm provider which is version 2.0.1++?

I am cutting a release for v0.10.6 now @savvys.

Thanks a lot @jrhouston

Thank you so much @jrhouston.

I have one question, I noticed that your PR for 0.10.6 was already merged but now when I try to use it from Terraform seems that it's not found yet, is there some review process or similar before it's publicly available?

@sergio-dreamcode you'll need to wait until it appears here: https://releases.hashicorp.com/terraform-provider-helm/0.10.6/ (which it has now)

@sergio-dreamcode There is a release pipeline that happens after the merge that builds all the appropriate binaries and uploads them to a CDN. I was just able to pull it down so it should be available now – sometimes it can take a few minutes to roll out so try again in a few.

Thanks for the quick turnaround @jrhouston , the provider is working as expected again. We have been working to convert to helm3 but we have a very large number helm deploys to regression test on helm3 and this repo becoming unavailable caught us at the worst time (during a prod release, of course). Thanks again for the speedy resolution.

No problem @dfry thanks for contributing. Good luck with your upgrades! 🤠🔧

Was this page helpful?
0 / 5 - 0 ratings