Skip to content

Commit fc424ec

Browse files
committed
fix: force new talosconfig if endpoints or nodes change
This PR fixes a bug where terraform was unable to apply when the number of control plane nodes was scaled from, for example, 1 to 3. This ensures that the talosconfig resource gets recreated any time the IPs in the list of endpoints or nodes is changed and that gets bubbled out to all of the other dependent objects. Seems to work well, tested with DO example. Signed-off-by: Spencer Smith <[email protected]> (cherry picked from commit dc00baa)
1 parent b6f1fdd commit fc424ec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

talos/resource_talos_client_configuration.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ func resourceTalosClientConfiguration() *schema.Resource {
4343
Elem: &schema.Schema{
4444
Type: schema.TypeString,
4545
},
46+
ForceNew: true,
4647
},
4748
"endpoints": {
4849
Type: schema.TypeList,
@@ -51,6 +52,7 @@ func resourceTalosClientConfiguration() *schema.Resource {
5152
Elem: &schema.Schema{
5253
Type: schema.TypeString,
5354
},
55+
ForceNew: true,
5456
},
5557
"talos_config": {
5658
Type: schema.TypeString,

0 commit comments

Comments
 (0)