-
Notifications
You must be signed in to change notification settings - Fork 407
Closed
Labels
Description
Terraform, Provider, Kubernetes and Helm Versions
Terraform version: 1.12.2
Provider version: 3.0.2
Kubernetes version: 1.33.0
Affected Resource(s)
- helm_release
Terraform Configuration Files
resource "helm_release" "repro" {
name = "issue-repro"
chart = "${path.module}/repro-chart"
namespace = "default"
}Debug Output
https://gist.github.com/nint8835/8873a73e875a53bab478c2eb5987b20f
Panic Output
N/A
Steps to Reproduce
A complete ready-to-go simple repro example can be found here: https://github.com/nint8835/helm-issue-repro
- Create & apply a
helm_releasereferencing a local helm chart - Update the
versionvalue on the chart - Apply again
Expected Behavior
The release be upgraded without issue
Actual Behavior
The apply fails due to an inconsistent result error, however the upgrade will complete successfully. On subsequent apply, Terraform will correctly recognize the updated state
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to helm_release.repro, provider "provider[\"registry.terraform.io/hashicorp/helm\"]"
│ produced an unexpected new value: .metadata.revision: was cty.NumberIntVal(3), but now cty.NumberIntVal(4).
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
╵
╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to helm_release.repro, provider "provider[\"registry.terraform.io/hashicorp/helm\"]"
│ produced an unexpected new value: .metadata.version: was cty.StringVal("0.1.0"), but now
│ cty.StringVal("0.1.1").
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
╵
╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to helm_release.repro, provider "provider[\"registry.terraform.io/hashicorp/helm\"]"
│ produced an unexpected new value: .metadata.last_deployed: was cty.NumberIntVal(1.751334292e+09), but now
│ cty.NumberIntVal(1.751334361e+09).
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
Applies doing things like changing values do not cause this error, it is specifically updating the version in the local chart
Important Factoids
N/A
References
- Can't use version constraint #1662 - Exhibits a similar error on the version field, unsure if they have the same cause
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
SomaticMaple, danielskowronski, Taucher2003, scott-doyland-burrows, cwegener and 14 more