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

Unable to use count, for_each, or depends_on arguments even on 3.0.0-pre1 #1563

Open
CRASH-Tech opened this issue Jan 17, 2025 · 0 comments
Open
Assignees

Comments

@CRASH-Tech
Copy link

Terraform, Provider, Kubernetes and Helm Versions

Terraform version: 1.10.4
Provider version: 3.0.0-pre1
Kubernetes version: 1.27.7

Terraform Configuration Files

terraform {
  required_providers {
    helm = {
      source  = "hashicorp/helm"
      version = "3.0.0-pre1"
    }
  }
}

provider "helm" {
  kubernetes {
    host                   = yamldecode(var.kubeconfig).clusters[0].cluster.server
    cluster_ca_certificate = base64decode(yamldecode(var.kubeconfig).clusters[0].cluster.certificate-authority-data)
    client_certificate     = base64decode(yamldecode(var.kubeconfig).users[0].user.client-certificate-data)
    client_key             = base64decode(yamldecode(var.kubeconfig).users[0].user.client-key-data)
  }
}
module "cilium" {
  source     = "../../../../../modules/helm-release"
  depends_on = [module.talos-cluster]

  kubeconfig = module.talos-cluster.kubeconfig
}

Debug Output

The module at module.cilium is a legacy module which contains its own local provider configurations, and so calls to it may not use the count, for_each, or depends_on arguments.
│ 
│ If you also control the module "../../../../../modules/helm-release", consider updating this module to instead expect provider configurations to be passed by its caller.

References

@CRASH-Tech CRASH-Tech added the bug label Jan 17, 2025
@CRASH-Tech CRASH-Tech changed the title Unabe to use count, for_each, or depends_on arguments even on 3.0.0-pre1 Unable to use count, for_each, or depends_on arguments even on 3.0.0-pre1 Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants