From e4cf3bcae77f904694897c78743c60138f404166 Mon Sep 17 00:00:00 2001 From: vandomej Date: Mon, 29 Sep 2025 16:36:18 -0700 Subject: [PATCH] Reverting to old patch routing --- control_plane/main.tf | 71 ++++--------------- control_plane/patches/controlplane-patch.yaml | 9 +-- 2 files changed, 18 insertions(+), 62 deletions(-) diff --git a/control_plane/main.tf b/control_plane/main.tf index 5d2c1da..c42b5d5 100644 --- a/control_plane/main.tf +++ b/control_plane/main.tf @@ -1,15 +1,5 @@ terraform { required_version = ">= 1.0" - required_providers { - talos = { - source = "siderolabs/talos" - version = "~> 0.4" - } - } -} - -provider "talos" { - # Configuration options } # Load variables from a .tfvars file @@ -94,57 +84,22 @@ resource "null_resource" "talos_cluster" { } } -resource "talos_machine_secrets" "this" {} +resource "null_resource" "talos_cluster_patches" { + depends_on = [null_resource.talos_cluster] + triggers = { + patches_hash = filesha1("${path.module}/patches/controlplane-patch.yaml") + } -data "talos_machine_configuration" "this" { - cluster_name = "${var.cluster_name}" - machine_type = "controlplane" - cluster_endpoint = "https://10.5.0.1:6443" - machine_secrets = talos_machine_secrets.this.machine_secrets + provisioner "local-exec" { + command = <