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

terraform plan crashed when dependency_update = true was added #1544

Open
jedzer opened this issue Nov 27, 2024 · 2 comments
Open

terraform plan crashed when dependency_update = true was added #1544

jedzer opened this issue Nov 27, 2024 · 2 comments
Assignees
Labels

Comments

@jedzer
Copy link

jedzer commented Nov 27, 2024

Terraform, Provider, Kubernetes and Helm Versions

Terraform version: v1.9.8
Provider version: v2.16.1
Kubernetes version: 1.31.1

Affected Resource(s)

  • helm_release

Terraform Configuration Files

resource "helm_release" "novu" {
  name      = "novu"
  chart     = "../../modules/k8s-workloads/novu/helm"  # fork of https://github.com/novuhq/community-k8s
  namespace = var.namespace

  dependency_update = true  # <--- started crashing when this was set to true

  set {
    name  = "store.encryptionKey"
    value = random_id.encryption_key.id
  }
}

resource "random_id" "encryption_key" {
  byte_length = 32
}

variable "namespace" {
  description = "The namespace to deploy the Novu Helm chart"
  type        = string
}

variable "image_tag" {
  description = "The image tag to use for the Novu container"
  type        = string
  default     = "latest"
}

Debug Output

Trimmed all logs except for the helm provider:
https://pastebin.com/bcNZ0X9H

NOTE: In addition to Terraform debugging, please set HELM_DEBUG=1 to enable debugging info from helm.

Panic Output

https://pastebin.com/WZxjrN2v

Steps to Reproduce

  1. terraform plan

Expected Behavior

  • Should show plan for the helm_release

Actual Behavior

  • Provider panic

Important Factoids

  • helm_release started to crash when dependency_update = true was added
  • running in GKE
  • the helm_release is defined in a module that is later on used by another module (maybe this does matter idk)

References

  • Not that I could find

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
@jedzer
Copy link
Author

jedzer commented Nov 28, 2024

For anyone encountering the same for the time being I'm using a workaround proposed in this issue #576 (comment)

@appilon appilon removed their assignment Nov 29, 2024
@alexsomesan alexsomesan self-assigned this Dec 4, 2024
@ptcar2009
Copy link

Any updates on this? Is anyone working on it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants