siderolabs / terraform-provider-talos

Mozilla Public License 2.0
123 stars 17 forks source link

`terraform destroy` should destroy the cluster #133

Closed mircea-pavel-anton closed 3 months ago

mircea-pavel-anton commented 11 months ago

I managed to set up a Talos cluster using the basic example provided, and I noticed that if I run terraform destroy the talos_machine_configuration_apply objects get destroyed but nothing really happens.

I think that running terraform destroy, or rather destroying the talos_machine_configuration_apply object, should essentially run talosctl reset on the node.

smira commented 7 months ago

Add a flag to do talosctl reset --system-labels-to-wipe EPHEMERAL,STATE when talos_machine_configuration_apply is destroyed.