Skip to content

Importing a chart from a chart repository: Error locating chart #1718

@cveld

Description

@cveld

Terraform, Provider, Kubernetes and Helm Versions

Terraform version: 1.13.2
Provider version: 3.1.0
Kubernetes version: 1.33.2

Affected Resource(s)

  • helm_release

Terraform Configuration Files

resource "helm_release" "argocd" {
  chart      = "argo"
  name       = "argocd"
  repository = "https://argoproj.github.io/argo-helm"
  version    = "3.1.9"
  namespace  = "argocd-nonprod"
  values = [
    "${file("${path.module}/argocd-values/values.yaml")}",
    "${file("${path.module}/argocd-values/customized.yaml")}"
  ]
}

provider "helm" {
  debug = true
  kubernetes {
    host                   = local.aks.kube_config.0.host
    client_certificate     = base64decode(local.aks.kube_admin_config.0.client_certificate)
    client_key             = base64decode(local.aks.kube_admin_config.0.client_key)
    cluster_ca_certificate = base64decode(local.aks.kube_admin_config.0.cluster_ca_certificate)
  }
}

import {
  to = helm_release.argocd
  id = "argocd-nonprod/argocd"
}

Debug Output

log.zip

Panic Output

Steps to Reproduce

  1. terraform apply

Expected Behavior

Import should go fine.

Actual Behavior

│ Error: Error locating chart
│ 
│   with helm_release.argocd,
│   on helm_argocd.tf line 1, in resource "helm_release" "argocd":
│    1: resource "helm_release" "argocd" {
│ 
│ Unable to locate chart argo-cd: non-absolute URLs should be in form of
│ repo_name/path_to_chart, got: argo-cd

Important Factoids

References

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions