From abb30623d09110594b42e4ac89f67e56cb4ec5b0 Mon Sep 17 00:00:00 2001 From: "juvenal.diaz" Date: Mon, 9 Nov 2026 19:30:20 -0600 Subject: [PATCH] Format OpenTofu configuration --- bootstrap/apps/main.tf | 8 ++--- bootstrap/cluster/main.tf | 50 +++++++++++++------------- bootstrap/edge/main.tf | 66 +++++++++++++++++----------------- bootstrap/provisioning/main.tf | 8 ++--- 4 files changed, 66 insertions(+), 66 deletions(-) diff --git a/bootstrap/apps/main.tf b/bootstrap/apps/main.tf index 445375f..8ff3753 100644 --- a/bootstrap/apps/main.tf +++ b/bootstrap/apps/main.tf @@ -38,8 +38,8 @@ locals { target = { kind = "Deployment", name = "local-registry" } patch = yamlencode([ { - op = "replace" - path = "/spec/template/spec/affinity/nodeAffinity/requiredDuringSchedulingIgnoredDuringExecution/nodeSelectorTerms/0/matchExpressions/0/values" + op = "replace" + path = "/spec/template/spec/affinity/nodeAffinity/requiredDuringSchedulingIgnoredDuringExecution/nodeSelectorTerms/0/matchExpressions/0/values" value = [var.registry_placement.node] }, ]) @@ -49,8 +49,8 @@ locals { patch = yamlencode([ { op = "replace", path = "/spec/local/path", value = var.registry_placement.path }, { - op = "replace" - path = "/spec/nodeAffinity/required/nodeSelectorTerms/0/matchExpressions/0/values" + op = "replace" + path = "/spec/nodeAffinity/required/nodeSelectorTerms/0/matchExpressions/0/values" value = [var.registry_placement.node] }, ]) diff --git a/bootstrap/cluster/main.tf b/bootstrap/cluster/main.tf index 15543f4..21ef421 100644 --- a/bootstrap/cluster/main.tf +++ b/bootstrap/cluster/main.tf @@ -16,26 +16,26 @@ terraform { resource "null_resource" "k3s_control_plane" { count = local.k3s_enabled ? 1 : 0 triggers = { - node_name = var.control_plane_node_name - host = var.control_plane_host - user = var.control_plane_user - ssh_key_path = var.control_plane_ssh_key_path - advertise_address = var.control_plane_advertise_address - kubeconfig_path = var.kubeconfig_path - kubeconfig_owner = var.kubeconfig_owner - k3s_version = var.k3s_version - allow_hypervisor_host = var.k3s_allow_hypervisor_host - runtime_storage_path = var.k3s_runtime_storage_path - required_data_mount = var.k3s_required_data_mount + node_name = var.control_plane_node_name + host = var.control_plane_host + user = var.control_plane_user + ssh_key_path = var.control_plane_ssh_key_path + advertise_address = var.control_plane_advertise_address + kubeconfig_path = var.kubeconfig_path + kubeconfig_owner = var.kubeconfig_owner + k3s_version = var.k3s_version + allow_hypervisor_host = var.k3s_allow_hypervisor_host + runtime_storage_path = var.k3s_runtime_storage_path + required_data_mount = var.k3s_required_data_mount runtime_storage_helper = filesha256("${path.module}/../../scripts/k3s-runtime-storage-host.py") - pod_network_cidr = var.pod_network_cidr + pod_network_cidr = var.pod_network_cidr } connection { - type = "ssh" - user = self.triggers.user + type = "ssh" + user = self.triggers.user private_key = file(self.triggers.ssh_key_path) - host = self.triggers.host - timeout = "30m" + host = self.triggers.host + timeout = "30m" } provisioner "remote-exec" { inline = [<