siderolabs / terraform-provider-talos

Mozilla Public License 2.0
117 stars 15 forks source link

Remove defaults for KubePrismSupport, DiskQuotaSupport and certSAN #151

Closed myoung34 closed 6 months ago

myoung34 commented 6 months ago

Im attempting to migrate my random controlplane + worker config yaml to the terraform provider here

I was able to get a 1:1 match except:

smira commented 6 months ago

Can't you just use config patches to set desired values?

myoung34 commented 6 months ago

This happens behind the scenes. Since its not in my yaml or plan there's nothing to patch unless there's something Im missing

Even if I set the values explicitly to null they arent in the plan and get populated anyway

The PR I linked does not include these and yet its populated regardless during the talos apply-config behind the scenes somehow

smira commented 6 months ago

You have talos_version to control the defaults based on Talos version you're generating the machine config for.

You should be still be able to override whatever defaults are with config patches.