Open hansbogert opened 11 months ago
@a-blender @kkaempf a gentle nudge for this issue; Is everything clear, or is more info or reproduction details needed?
Reassigning for better visibility.
Is something blocking this? @snasovich @Jono-SUSE-Rancher
Rancher Server Setup
Information about the Cluster
having machine labels in machine_pools causes unnecessary recreation of machine pools during deletion of other machine_pools. Worse though is that these newly recreated
machine_pool
machines now can have wrongmachine_labels
on them.The situation in which this actually occurs is explained below.
To Reproduce
Have a cluster with the following machine_pools (in pseudo-config)
Remove
pool1
using TerraformActual Result
in pseudo config:
Expected Result
In pseudo config:
Additional context
There are multiple issues at play here:
machine_labels
is optional, but computed in the Terraform schema. Why is this computed? This is an edge case in the Terraform SDK, similar to this oneIf the
machine_labels
does not need to be computed, then this issue is easily solved by removing the computed attribute. I've verified that the behavior is then correct.