-
Notifications
You must be signed in to change notification settings - Fork 407
Open
Labels
Description
Terraform, Provider, Kubernetes and Helm Versions
Tofu version: v1.10.3
Provider version: 3.0.2
Kubernetes version: 1.33
Affected Resource(s)
- helm_release
Terraform Configuration Files
data "gitlab_project_tags" "tags" {
project = "project/test"
}
resource "helm_release" "test" {
name = "test"
repository = "oci://XXXXXX"
chart = var.project
version = data.gitlab_project_tags.tags.tags[0].name
namespace = kubernetes_namespace_v1.project.metadata[0].name
wait_for_jobs = true
timeout = 60
force_update = true
}Debug Output
NC
Panic Output
│ Error: Planned version is different from configured version
│
│ with module.test.helm_release.test,
│ on .terraform/modules/test/test.tf line 20, in resource "helm_release" "test":
│ 20: resource "helm_release" "test" {
│
│ The version in the configuration is "" but the planned version is
│ "2025.6.1".
│ You should update the version in your configuration to "2025.6.1", or
│ remove the version attribute from your configuration.
Steps to Reproduce
tofu plan
Expected Behavior
Tag 2025.6.1 is well updated in the plan
Actual Behavior
Plan fail for strange reason
Important Factoids
- if I set the version to "2025.6.1", it works.
- If I use the datasource, I have this error
- If I try an output of the datasource.tags[0].name, I have well "2025.6.1"
- If I try to force it via tostring() function, same error
- the release is not installed at this time, the plan is to install it so I don't really understand the error
References
NC
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
anthosz, Tiago-FM, julianfbeck, nirav-rafay, KYannick and 2 more