Skip to content

Commit

Permalink
fix: force new talosconfig if endpoints or nodes change
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
rsmitty committed Feb 9, 2023
1 parent b7d84ba commit dc00baa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions talos/resource_talos_client_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ func resourceTalosClientConfiguration() *schema.Resource {
Elem: &schema.Schema{
Type: schema.TypeString,
},
ForceNew: true,
},
"endpoints": {
Type: schema.TypeList,
Expand All @@ -51,6 +52,7 @@ func resourceTalosClientConfiguration() *schema.Resource {
Elem: &schema.Schema{
Type: schema.TypeString,
},
ForceNew: true,
},
"talos_config": {
Type: schema.TypeString,
Expand Down

0 comments on commit dc00baa

Please sign in to comment.