Cluster Type (Local/Downstream): Downstream, VMware vSphere RKE2
User Information
What is the role of the user logged in? (Admin/Cluster Owner/Cluster Member/Project Owner/Project Member/Custom): Admin
Provider Information
What is the version of the Rancher v2 Terraform Provider in use? 3.0.0 (still exist in 3.2.0)
What is the version of Terraform in use? v1.6.2
Describe the bug
We have different nodepools created by the tf-resource rancher2_cluster_v2 . Some of the nodepools have machine_labels and taints attached. If we want to remove an machine_label or taint from an existing nodepool (i.e. setting the machine_labels inside the dynamic "machine_pools" to {}) terraform just ignores it.
Rancher Server Setup
Information about the Cluster
User Information
Provider Information
Describe the bug
We have different nodepools created by the tf-resource rancher2_cluster_v2 . Some of the nodepools have machine_labels and taints attached. If we want to remove an machine_label or taint from an existing nodepool (i.e. setting the machine_labels inside the dynamic "machine_pools" to {}) terraform just ignores it.
The corresponding code is here: https://github.com/rancher/terraform-provider-rancher2/blob/master/rancher2/structure_cluster_v2_rke_config_machine_pool.go#L69
To Reproduce
Create a nodepool via the rancher2_cluster_v2 tf ressource and try to remove machine_labels / taints by setting the map to null or an empty map
Actual Result
nothing happens
Expected Result
The labels / taints should be removed i.e. the check for len > 0 should be removed.
Screenshots
Additional context