Repository navigation
Commit 556c1a9
committed
feat(kubernetes-nodes): boot worker disks from a shared golden Talos image (CDI clone)
Rebase of #3294 onto main after the Phase 2 KubernetesNodes split (#3315).
The worker disk source and the in-guest installer pin move from
packages/apps/kubernetes to packages/apps/kubernetes-nodes, where the pool
objects now live; the per-node-group `nodeGroups.<name>.image` union becomes
the pool-level `image` value of the KubernetesNodes chart.
Adds packages/system/kubernetes-worker-image, an opt-in catalog that imports a
golden Talos worker image into cozy-public once per (schematicID, version). A
pool that sets image.builtin CDI-clones that golden instead of streaming the
raw image over HTTP per worker, which is the per-worker Image Factory
dependency behind the kubernetes-* node-join flake (#3231). image.factory
keeps the HTTP path and lets a pool point at its own mirror/schematic/version.
With `image` omitted the render is byte-identical to before -- the stored
render snapshot is unchanged, so existing workers do not roll on upgrade.
The e2e suites switch to the clone path: the per-worker talos-image-cache
mirror and its manifest, helper and tests are removed, the catalog is enabled
in the sandbox, and the run waits for the golden to import before creating the
tenant. Neither tenant CR carries a spec.talos override any more. The ghcr.io
pull-through that used to share that block was already removed with the QEMU
merge-gating lane (#4020), so both CRs now take the chart defaults.
Two things the cache took with it. The successful-join timing report loses its
cache-transfer arm: a cloned disk is populated in the storage layer, so there
is no compressed-byte service time to report per worker, and DataVolume
Pending -> Succeeded is the whole of the disk's own cost. And the node-join
failure path loses the cache re-probe, which was the collector its diagnostic
budget gave up first; what replaced it, the golden's own DataVolume, is read
inside the budget at (a2) rather than at its mercy.
Assisted-By: LLM
Signed-off-by: Myasnikov Daniil <[email protected]>1 parent 9e577a5 commit 556c1a9
32 files changed
Lines changed: 1104 additions & 1687 deletions
File tree
- api/apps/v1alpha1/kubernetesnodes
- hack
- e2e-chainsaw
- _lib
- kubernetes-latest
- kubernetes-previous
- packages
- apps/kubernetes-nodes
- templates
- tests
- core/platform
- sources
- templates/bundles
- system
- kubernetes-nodes-rd/cozyrds
- kubernetes-worker-image
- templates
- tests
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
0 commit comments