You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
helm_release.k8s_config: Creating...
2024-09-02T11:51:25.437-0300 [ERROR] provider.terraform-provider-helm_v2.12.1_x5: Response contains error diagnostic: diagnostic_detail= diagnostic_summary="could not download chart: no cached repo found. (try 'helm repo update'): open /home/user/.cache/helm/repository/other-helm-repo-index.yaml: no such file or directory" tf_proto_version=5.4 tf_provider_addr=provider tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/[email protected]/tfprotov5/internal/diag/diagnostics.go:58 @module=sdk.proto diagnostic_severity=ERROR tf_req_id=37d9fb27-d72d-421c-bae6-043c6866ae9b tf_resource_type=helm_release timestamp=2024-09-02T11:51:25.437-0300
2024-09-02T11:51:25.437-0300 [ERROR] vertex "helm_release.k8s_config" error: could not download chart: no cached repo found. (try 'helm repo update'): open /home/user/.cache/helm/repository/other-helm-repo-index.yaml: no such file or directory
╷
│ Error: could not download chart: no cached repo found. (try 'helm repo update'): open /home/user/.cache/helm/repository/other-helm-repo-index.yaml: no such file or directory
│
│ with helm_release.k8s_config,
│ on main.tf line 23, in resource "helm_release" "k8s_config":
│ 23: resource "helm_release" "k8s_config" {
I wasn't able to reproduce this issue. Have you tried to download the chart with curl? Does it work with your username and password in the above Terraform code snippet?
I wasn't able to reproduce this issue. Have you tried to download the chart with curl? Does it work with your username and password in the above Terraform code snippet?
Thanks.
Yes @arybolovlev the URL and credentials are correct. Even using the .tgz URL, it is necessary to perform the helm repo update? Would be nice to have a property in helm_release to set true and terraform do automatically.
Terraform, Provider, Kubernetes and Helm Versions
Affected Resource(s)
Terraform Configuration Files
Panic Output
Steps to Reproduce
terraform apply
Expected Behavior
Apply performed and helm release installed successfully from private my registry using an absolute URL to the .tgz of the Chart.
Actual Behavior
Error: could not download chart: no cached repo found
Is there a way to force
helm repo update
via terraform? Should we peform it even using .tgz url instead of chart repository?The text was updated successfully, but these errors were encountered: