Compare commits

..

2 Commits

Author SHA1 Message Date
32be7b487e fix: Fix type of metrics extra arg
All the extra args values are supposed to be strings
2026-02-20 04:57:03 +01:00
940b01a7dc feat: Remove v version prefix in node config
This allows for better checking if the provided version string adheres
to semver.
2026-02-20 04:56:15 +01:00
4 changed files with 8 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
schematicId: !schematic default schematicId: !schematic default
arch: amd64 arch: amd64
talosVersion: v1.11.3 talosVersion: 1.11.3
kubernesVersion: v1.34.1 kubernetesVersion: 1.34.1
kernelArgs: kernelArgs:
- talos.platform=metal - talos.platform=metal
- console=tty0 - console=tty0

View File

@@ -1,4 +1,4 @@
machine: machine:
kubelet: kubelet:
extraArgs: extraArgs:
rotate-server-certificates: true rotate-server-certificates: "true"

View File

@@ -17,8 +17,8 @@ goto node_${serial} || exit
{% do kernelArgs.append("talos.config=" ~ config.server.httpUrl ~ "/configs/" ~ node.filename ~ ".yaml") %} {% do kernelArgs.append("talos.config=" ~ config.server.httpUrl ~ "/configs/" ~ node.filename ~ ".yaml") %}
{% endif %} {% endif %}
imgfree imgfree
kernel https://pxe.factory.talos.dev/image/{{ node.schematicId }}/{{ node.talosVersion }}/kernel-{{ node.arch }} {{ kernelArgs|join(" ") }} kernel https://pxe.factory.talos.dev/image/{{ node.schematicId }}/v{{ node.talosVersion }}/kernel-{{ node.arch }} {{ kernelArgs|join(" ") }}
initrd https://pxe.factory.talos.dev/image/{{ node.schematicId }}/{{ node.talosVersion }}/initramfs-{{ node.arch }}.xz initrd https://pxe.factory.talos.dev/image/{{ node.schematicId }}/v{{ node.talosVersion }}/initramfs-{{ node.arch }}.xz
boot boot
{% endif %} {% endif %}
{% endfor %} {% endfor %}

View File

@@ -6,10 +6,10 @@ CONFIGS={{ root }}/configs
{% for node in nodes -%} {% for node in nodes -%}
talosctl gen config {{ node.cluster.name }} https://{{ node.cluster.controlPlaneIp }}:6443 -f \ talosctl gen config {{ node.cluster.name }} https://{{ node.cluster.controlPlaneIp }}:6443 -f \
--with-secrets {{ node.cluster.secretsFile }} \ --with-secrets {{ node.cluster.secretsFile }} \
--talos-version {{ node.talosVersion }} \ --talos-version v{{ node.talosVersion }} \
--kubernetes-version {{ node.kubernesVersion }} \ --kubernetes-version v{{ node.kubernetesVersion }} \
--output-types {{ node.type }} \ --output-types {{ node.type }} \
--install-image factory.talos.dev/metal-installer/{{ node.schematicId }}:{{ node.talosVersion }} \ --install-image factory.talos.dev/metal-installer/{{ node.schematicId }}:v{{ node.talosVersion }} \
{% for patch in node.patches -%} {% for patch in node.patches -%}
{# The double call to tojson is needed to properly escape the patch (object -> json -> string) -#} {# The double call to tojson is needed to properly escape the patch (object -> json -> string) -#}
--config-patch {{ patch|tojson|tojson }} \ --config-patch {{ patch|tojson|tojson }} \