feat: migrate to Talos v1.13 machinery and gate config against target talosVersion
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
Direzione di ricerca
Start with the machinery dependency replacements in go.mod and the engine’s document-loading path; inspect the custom LookupFunc and docs/manual-test-plan.md. The work spans rebasing and publishing the Talos fork, updating dependencies, designing version-compatibility metadata and gates, and testing all affected document kinds. Done means the new documents load and configs targeting older Talos versions receive actionable compatibility errors, with tests and manual steps.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
talm pins its Talos machinery to a cozystack/talos fork snapshot from 2026-01-26, which predates Talos v1.13. As a result, config documents introduced in v1.13 are not in the document registry and fail to load with "<Kind>" "v1alpha1": not registered. The first user-reported case is RoutingRuleConfig (Linux policy routing, needed for multi-NIC setups), but seven other documents are affected too.
This epic tracks two things:
- Migrating the machinery dependency to Talos v1.13 so these documents load.
- Adding version-skew gates so a document or field introduced in a newer Talos release cannot silently leak into a config that targets an older
talosVersion(e.g. a v1.13-only document in a config aimed at v1.11), surfacing a clear error attalm template/talm applytime instead of a cryptic node-side rejection.
Current state
go.modnominally requirespkg/machinery v1.13.0-beta.1, but areplaceoverrides it withcozystack/talos[/pkg/machinery] v0.0.0-20260126122716-d18a185e3680(2026-01-26).- That fork snapshot is upstream-from-before-v1.13 plus a single patch:
--skip-verify(upstream PR #12652, declined upstream, so the fork is required for as long as we need the flag). - Upstream added routing rules on 2026-03-13; it shipped in
v1.13.0-beta.1(2026-03-27) and is present throughv1.13.3(2026-05-25). The fork is ~7 weeks older than that commit, so the documents below are simply absent.
What we gain from v1.13
Re-basing the fork onto v1.13.3 registers these documents automatically (the document registry drives loading):
| Kind | Purpose |
|---|---|
RoutingRuleConfig |
Linux policy routing rules (multi-NIC, source-based routing) |
VRFConfig |
Virtual routing and forwarding |
BlackholeRouteConfig |
Blackhole routes |
KubeSpanConfig |
KubeSpan as a standalone document |
TCPProbeConfig |
TCP health probe |
ExternalVolumeConfig |
External volumes |
EnvironmentConfig |
Environment variables as a document |
ImageVerificationConfig |
Image signature verification |
Workstreams
A. Re-derive the fork on a stable base
- Re-derive
cozystack/talosfrom upstream tagv1.13.3and cherry-pick the--skip-verifypatch on top, replacing the long-lived diverged branch that drifted to 2026-01-26. - Publish the new revision (tag / pseudo-version) for both
talosandtalos/pkg/machinery. - Policy: re-base onto the latest stable v1.13 patch tag rather than tracking
main(alpha), so talm's machinery line matches the Talos line actually running on nodes.
B. Bump talm
- Update the
requireand bothreplacelines ingo.modto the new fork revision;go mod tidy; confirm the build. - Confirm
RoutingRuleConfigand the other seven documents load via the engine path.
C. Version-skew gates
- Gate rendered config against the project's target
talosVersion: reject (or warn on) any document/field that does not exist in the target release, with an actionable hint, instead of letting the node reject it. - Primary direction: newer document/field in an older-targeted config (v1.13 document in a v1.11 target).
- Same skew family as the previously observed
grubUseUKICmdlinerejection on older targets. - Design decision to resolve in this issue: how to source per-Kind / per-field minimum-version data (machinery metadata vs a maintained compatibility matrix in talm), and whether gating is document-level only or also field-level.
D. Tests
- Contract tests covering each newly-registered Kind through the engine (the custom LookupFunc path that unit charts can't reach).
- Unit tests for the version-skew gate (both pass and reject cases).
- Extend
docs/manual-test-plan.mdin the same commits as the code (forward-looking "do X, expect Y" steps). - Validate end-to-end on a live Talos v1.13 cluster.
E. Docs
- Update operator-facing docs (cozystack/website) for the newly supported documents and the gate behavior.
F. Optional / low priority
- Investigate whether
--skip-verifycan be upstreamed or replaced, which would let us drop the fork entirely and depend on plain upstream machinery.
Open questions
- Source of per-Kind/per-field minimum-version data for the gate (machinery vs maintained matrix).
- Gate depth: document-level vs field-level.
- Cadence for re-basing the fork on new v1.13 patch releases.
- Lingua principale
- Go
- Stelle
- 493
- Fork
- 23
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di cozystack/talm
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
TestCommittedTextFilesIgnoresUntrackedArtefacts commits into the real repo when GIT_DIR is setAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
Difficoltà 2/5 Meno di un'ora Idoneità per principianti 70/100
-
area/apply area/commands area/upgrade kind/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Tutte le issue di cozystack/talm
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Correct local module testing instructions for Go sample contributorsForse già presa @slievrly l’ha presa oggi. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
-
internal/core: cleanAttachmentName splits a rune at the 255-byte cap and stores invalid UTF-8Forse già presa @pacwestnobody l’ha presa oggi. Apertago good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Podiom/Podiom#427 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
TestLaunchGolden spends about 98 seconds on fake-agent exit delays under -raceForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
factory:subtask
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
I maintainer di solito rispondono entro 1 giorno