Skip to content

Bumping version of local chart results in inconsistent result error #1664

@nint8835

Description

@nint8835

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

  1. Create & apply a helm_release referencing a local helm chart
  2. Update the version value on the chart
  3. 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

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

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions