From 3fa823c7780fd6cf04f8bff9045cef1ca5674149 Mon Sep 17 00:00:00 2001 From: Dominik Wombacher Date: Sat, 12 Oct 2024 10:25:25 +0000 Subject: [PATCH] fix(rancher-common): Helm error, could not download chart Workaround for: Error: could not download chart: no cached repo found. (try 'helm repo update') Refs: https://github.com/hashicorp/terraform-provider-helm/issues/630 --- rancher/rancher-common/provider.tf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rancher/rancher-common/provider.tf b/rancher/rancher-common/provider.tf index d4c09a4d..52ebe67f 100644 --- a/rancher/rancher-common/provider.tf +++ b/rancher/rancher-common/provider.tf @@ -24,6 +24,8 @@ provider "helm" { kubernetes { config_path = local_file.kube_config_server_yaml.filename } + repository_config_path = "${path.module}/.helm/repositories.yaml" + repository_cache = "${path.module}/.helm" } # Rancher2 bootstrapping provider