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

Stale metadata output from previous release #1099

Closed
nitrocode opened this issue Mar 26, 2023 · 2 comments
Closed

Stale metadata output from previous release #1099

nitrocode opened this issue Mar 26, 2023 · 2 comments
Labels

Comments

@nitrocode
Copy link

nitrocode commented Mar 26, 2023

Terraform, Provider, Kubernetes and Helm Versions

Terraform version: 1.4.2
Provider version: 2.9.0
Kubernetes version: 1.25

Affected Resource(s)

  • helm_release

Terraform Configuration Files

resource "helm_release" "example" {
  name       = "my-redis-release"
  repository = "https://charts.bitnami.com/bitnami"
  chart      = "redis"
  version    = "6.0.1"

  values = [
    "${file("values.yaml")}"
  ]

  set {
    name  = "cluster.enabled"
    value = "true"
  }

  set {
    name  = "metrics.enabled"
    value = "true"
  }

  set {
    name  = "service.annotations.prometheus\\.io/port"
    value = "9127"
    type  = "string"
  }
}

output "metadata" {
  value = helm_release.example.metadata
}

Debug Output

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

Panic Output

Steps to Reproduce

  1. create new helm release
  2. terraform apply
  3. change values or release version
  4. terraform apply

Notice the metadata output is from the prior apply. If we run apply again, it will show the newer metadata.

Expected Behavior

Actual Behavior

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
@nitrocode nitrocode added the bug label Mar 26, 2023
@alexsomesan
Copy link
Member

Hi!
What specifically in the metadata does not get updated as you would expect?

@alexsomesan
Copy link
Member

Might be actually improved by this change: #1097

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

3 participants