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

Setting a field of `node_metadata` in `oci_containerengine_node_pool` from a non-empty string to an empty string is ignored

Open alfredkrohmer opened this issue 9 months ago • 0 comments

Setting a field of node_metadata in oci_containerengine_node_pool to an empty string shows after it was set to a non-empty string before is ignored. Terraform doesn't even display this in the plan; it probably thinks that we don't care about the field if we set it to an empty string but we actually want to set the field explicitly to an empty string.

In our case kubelet-extra-args was having a value of --register-with-taints= (with an empty value), which doesn't work anymore with cluster-autoscaler >= 1.31, so we need to set kubelet-extra-args to an empty string to remove the flag, which Terraform ignores.

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version and Provider Version

Affected Resource(s)

Terraform Configuration Files

# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. 
# Please remove any sensitive information from configuration files before sharing them. 

Debug Output

Panic Output

Expected Behavior

Actual Behavior

Steps to Reproduce

  1. terraform apply

Important Factoids

References

alfredkrohmer avatar Jul 18 '25 13:07 alfredkrohmer