Skip to content

write only values are lost during updateΒ #1753

Description

@asheynkmantyler

Terraform, Provider, Kubernetes and Helm Versions

Terraform version: 1.14.4
Provider version: 3.1.1
Kubernetes version: 1.32

Affected Resource(s)

  • helm_release

Terraform Configuration Files

first you create helm release:

resource "helm_release" "app" {
	repository = "${path.module}"
	name = "echo"
	chart = "echo"
	namespace = "echo1"
	create_namespace = true
  set_wo = [ {
    name = "foo"
    value = "bar"
  } ]
  set_wo_revision = 1
}

then you update helm release:

resource "helm_release" "app" {
repository = "${path.module}"
name = "echo"
chart = "echo"
namespace = "echo1"
create_namespace = true
set = [{
name = "foo2"
value = "bar2"
}]

set_wo = [ {
name = "foo"
value = "bar"
} ]
set_wo_revision = 1
}

Steps to Reproduce

  1. create any helm release resource with set_wo argument and run terraform apply
  2. Update helm_release resource, but not write only argument and run terraform apply again

Expected Behavior

I would expect the helm chart after second apply to contain both new set argument and unchanged set_wo argument, since set_wo_revision was not changed

Actual Behavior

the set_wo parameter is no longer applied to helm chart after second apply

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

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions