terraform-provider-kubernetes icon indicating copy to clipboard operation
terraform-provider-kubernetes copied to clipboard

In a kubernetes_deployment_v1 with a service account, setting service_account_name = "" or none does not remove the existing service account

Open marcosdiez opened this issue 1 year ago • 0 comments

Terraform Version, Provider Version and Kubernetes Version

Terraform v1.5.5
on darwin_arm64
+ provider registry.terraform.io/hashicorp/kubernetes v2.26.0

Affected Resource(s)

  • kubernetes_deployment_v1

How to reproduce

  1. create or import a kubernetes_deployment_v1 with a service account (service_account_name = "something" )
  2. change service_account_name to "" or null
  3. terraform plan
  4. you will see that there are not changes

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

marcosdiez avatar Feb 23 '24 16:02 marcosdiez