Talos: remove deprecated System Extentions and move to schematicID (#1309)
* Talos: remove deprecated System Extentions and move to schematicID for talhelper and SUC * Fix typo in comments
This commit is contained in:
1 parent
31323b4036
commit
4a65ddeff9
7 files changed
+10
-36
No files matched your search
@@ -4,16 +4,7 @@ skip_tests: true
|
||||
distribution:
|
||||
type: talos
|
||||
talos:
|
||||
schematics:
|
||||
enabled: true
|
||||
id: df491c50a5acc05b977ef00c32050e1ceb0df746e40b33c643ac8a9bfb7c7263
|
||||
customization: |-
|
||||
extraKernelArgs:
|
||||
- net.ifnames=0
|
||||
systemExtensions:
|
||||
officialExtensions:
|
||||
- siderolabs/intel-ucode
|
||||
- siderolabs/i915-ucode
|
||||
schematicID: "df491c50a5acc05b977ef00c32050e1ceb0df746e40b33c643ac8a9bfb7c7263"
|
||||
|
||||
timezone: Etc/UTC
|
||||
|
||||
|
||||
@@ -283,7 +283,7 @@ You have two different options for setting up your local workstation.
|
||||
|
||||
#### Talos
|
||||
|
||||
1. Create Talos Secrets
|
||||
1. Create Talos Secrets and configuration
|
||||
|
||||
```sh
|
||||
task talos:gensecret
|
||||
|
||||
@@ -9,6 +9,6 @@ resources:
|
||||
{% if distribution.type in ["k3s"] %}
|
||||
- ./k3s/ks.yaml
|
||||
{% endif %}
|
||||
{% if distribution.type in ["talos"] and nodes.talos.schematics.enabled %}
|
||||
{% if distribution.type in ["talos"] and distribution.talos.schematicID %}
|
||||
- ./talos/ks.yaml
|
||||
{% endif %}
|
||||
@@ -2,6 +2,5 @@ main = lambda data: (
|
||||
data.get("distribution", {}).get("type", "k3s") in ["talos"] and
|
||||
data.get("distribution", {})
|
||||
.get("talos", {})
|
||||
.get("schematics", {})
|
||||
.get("enabled", False) == True
|
||||
.get("schematicID", {})
|
||||
)
|
||||
@@ -88,6 +88,6 @@ spec:
|
||||
args:
|
||||
- --nodes=$(NODE_IP)
|
||||
- upgrade
|
||||
- --image=factory.talos.dev/installer/{{ distribution.talos.schematics.id }}:$(SYSTEM_UPGRADE_PLAN_LATEST_VERSION)
|
||||
- --image=factory.talos.dev/installer/{{ distribution.talos.schematicID }}:$(SYSTEM_UPGRADE_PLAN_LATEST_VERSION)
|
||||
- --preserve=true
|
||||
- --wait=false
|
||||
@@ -31,6 +31,7 @@ nodes:
|
||||
installDiskSelector:
|
||||
serial: "{{ item.talos_disk_device }}"
|
||||
{% endif %}
|
||||
talosImageURL: factory.talos.dev/installer/{{ distribution.talos.schematicID }}
|
||||
controlPlane: {{ (item.controller) | string | lower }}
|
||||
networkInterfaces:
|
||||
- interface: eth0
|
||||
@@ -63,11 +64,6 @@ nodes:
|
||||
{% endfor %}
|
||||
|
||||
controlPlane:
|
||||
{% if distribution.talos.schematics.enabled %}
|
||||
schematic:
|
||||
customization:
|
||||
{{ distribution.talos.schematics.customization | indent(6, first=True) }}
|
||||
{% endif %}
|
||||
patches:
|
||||
# Configure containerd
|
||||
- &containerdPatch |-
|
||||
|
||||
+4
-16
@@ -9,22 +9,10 @@ distribution:
|
||||
type: k3s
|
||||
# (Optional) Talos Specific Options
|
||||
talos: {}
|
||||
# schematics:
|
||||
# # (Required) Disabling the schematic will disable the system-upgrade-controller and any
|
||||
# # additional Talos customization you have defined.
|
||||
# enabled: false
|
||||
# # (Required) For use with the system-upgrade-controller generate a schematic ID
|
||||
# # based on your System Extension requirements https://factory.talos.dev/
|
||||
# id: ""
|
||||
# # (Required) Additional NodeConfigs to apply to all nodes
|
||||
# # See: https://budimanjojo.github.io/talhelper/latest/reference/configuration/#nodeconfigs
|
||||
# customization: |-
|
||||
# extraKernelArgs:
|
||||
# - net.ifnames=0
|
||||
# systemExtensions:
|
||||
# officialExtensions:
|
||||
# - siderolabs/intel-ucode
|
||||
# - siderolabs/i915-ucode
|
||||
# # (Required) If you need any additional System Extensions and/or kernel arguments generate a schematic ID.
|
||||
# # Go to https://factory.talos.dev/ and choose the System Extensions you need and/or add extra kernel arguments.
|
||||
# # Otherwise use below default.
|
||||
# schematicID: "376567988ad370138ad8b2698212367b8edcb69b5fd68c80be1f2ec7d603b4ba"
|
||||
# # (Optional) Add vlan tag to network master device
|
||||
# # See: https://www.talos.dev/latest/advanced/advanced-networking/#vlans
|
||||
# vlan: 1
|
||||
|
||||
Reference in new issue
Block a user