From cd23465771e762b83fc9a4f59f6f591b6ef2ba0d Mon Sep 17 00:00:00 2001 From: AJ Date: Mon, 27 May 2024 14:32:38 +0100 Subject: [PATCH] add multi arch support for talos using schematic id (#1494) --- .../templates/kubernetes/bootstrap/talos/talconfig.yaml.j2 | 4 ++-- config.sample.yaml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bootstrap/templates/kubernetes/bootstrap/talos/talconfig.yaml.j2 b/bootstrap/templates/kubernetes/bootstrap/talos/talconfig.yaml.j2 index 3dff2814..9ec0638a 100644 --- a/bootstrap/templates/kubernetes/bootstrap/talos/talconfig.yaml.j2 +++ b/bootstrap/templates/kubernetes/bootstrap/talos/talconfig.yaml.j2 @@ -36,9 +36,9 @@ nodes: #% if bootstrap_secureboot.enabled %# machineSpec: secureboot: true - talosImageURL: factory.talos.dev/installer-secureboot/#{ bootstrap_schematic_id }# + talosImageURL: factory.talos.dev/installer-secureboot/#{ item.schematic_id | default(bootstrap_talos.schematic_id) }# #% else %# - talosImageURL: factory.talos.dev/installer/#{ bootstrap_schematic_id }# + talosImageURL: factory.talos.dev/installer/#{ item.schematic_id | default(bootstrap_talos.schematic_id) }# #% endif %# controlPlane: #{ (item.controller) | string | lower }# networkInterfaces: diff --git a/config.sample.yaml b/config.sample.yaml index dabffb15..84688a2f 100644 --- a/config.sample.yaml +++ b/config.sample.yaml @@ -22,6 +22,7 @@ bootstrap_node_inventory: [] # controller: true # (Required) Set to true if this is a controller node # disk: "" # (Required) Device path or serial number of the disk for this node (talosctl disks -n --insecure) # mac_addr: "" # (Required) MAC address of the NIC for this node (talosctl get links -n --insecure) + # schematic_id: "" # (Optional) Generated schematic id from https://factory.talos.dev/ # mtu: "" # (Optional) MTU for the NIC, default is 1500 # ...