fix(typo): fix typo (#245)

This commit is contained in:
Antoine Lecompte
2026-06-30 17:42:36 +00:00
committed by GitHub
parent 7858d7318d
commit 9ad33c444d
5 changed files with 40 additions and 4 deletions
+3
View File
@@ -40,3 +40,6 @@ charts/
# auto-generated
yaak/
CHANGELOG.md
# Markdown is not prettier-formatted (docs follow their own conventions).
*.md
+23
View File
@@ -64,6 +64,29 @@ provider "registry.opentofu.org/hashicorp/kubernetes" {
]
}
provider "registry.opentofu.org/hashicorp/random" {
version = "3.9.0"
constraints = "~> 3.6"
hashes = [
"h1:U8KXqGCoNI9/guYbTvzgdtVk3fRthoG0UXwm1JoEpIs=",
"zh:03f1114cc20b8913523735ab76e0f0a2b16ce13c92923a53304bf85f07fc0dbc",
"zh:105b678ee72322a3067f105d7e05e940f6143238f377f6e87ff4ec909246ac2a",
"zh:55f3bbf13ea18cbace61a706566a80f25f33fe2b1780b6f3d7b582af2a05b6d2",
"zh:63adf996db48f082f7a6351eb485e219cd88795fc71e6ec60a837263ab0d2cb1",
"zh:7e99550738a4e3cc68b8a467714b0d69371025fe95e3326d5323d026d55653e9",
"zh:8342b54af3a18a37e075eeae61be57f4de2ba71b35d95c5075d402dd2c1f289d",
"zh:83ee18e32ac9dd5fc91298554b7c4cfa4c3a1db50f4c797945637cc93c0844ae",
"zh:993ecc0adbf6bd535a59fbc9b735d8c33950e6f6eb5e621d750da9b71d65d80a",
"zh:ad722bc59d4edbf1415e827fc007c0efe6e0e9462d5568bae20b34be1058a261",
"zh:ae9448e1f87b2f9a6c5197a0e9862162ec6b137cb3a3835e11522995d8939e7c",
"zh:bc9cdd3aac784f759125c6627f6f6416e8726a1c184eb9cf3e55b9edbc94c627",
"zh:c8e35b89572ba1c40a9b20022e033a3395fb8d42e7604d50c900f193ba10382e",
"zh:e2deaa8a9975ef81d9f62baed12c41286918b0a10908e0e031f13f69a3b730a1",
"zh:ee39707557210a0ab1098aa357d2cdfe502e5a312d0dbdffb09d08facc4d3fc5",
"zh:f81afe4eb63e8aa9e0ea71be6c990f0dc69cb360e7191c0742a991f4a5081b64",
]
}
provider "registry.opentofu.org/hashicorp/tls" {
version = "4.3.0"
constraints = "~> 4.0"
@@ -1,3 +1,12 @@
# Cluster renamed yucca-staging → luke (Star Wars theme). Move the existing module
# instance to the new for_each key so it's a state rename, NOT a destroy+recreate —
# preserving machine-secrets/kubeconfig so the kubernetes/helm providers keep working
# (cluster_name + node hostnames still update as a rolling config change).
moved {
from = module.cluster["yucca-staging"]
to = module.cluster["luke"]
}
module "cluster" {
for_each = var.clusters
source = "../../../../shared/modules/talos-baremetal"
@@ -196,7 +196,7 @@ variable "clusters" {
})
nodes = list(object({
name = string
name = optional(string) # explicit hostname override; null = auto-pick from the shared inventory
role = optional(string, "control-plane")
address = string
}))
+4 -3
View File
@@ -35,9 +35,10 @@ locals {
})
]
# Stable per-hostname maps (TF map iteration is alphabetical by key, so plan
# ordering is deterministic across runs).
node_map = { for n in local.nodes_named : n.hostname => n }
# Keyed by address (static, known at plan) — NOT the hostname, which derives from
# the random_shuffle and is unknown until apply (for_each keys must be known at
# plan). Map iteration is alphabetical by key, so plan ordering is deterministic.
node_map = { for n in local.nodes_named : n.address => n }
cp_node_map = { for k, n in local.node_map : k => n if n.role == "control-plane" }
worker_node_map = { for k, n in local.node_map : k => n if n.role == "worker" }