19 Commits

Author SHA1 Message Date
Kevin Tijssen
786bf00abb
feat: add --platform=all support to image cache-create
Add support for caching all platforms in a multi-platform image index
by passing --platform=all to the images cache-create command.

When all is specified, the index manifest is fetched without platform
resolution, and each platform-specific image is downloaded individually.
Attestation manifests (unknown/unknown) are included.

Include the platform in the fetch log line so each pull is identifiable,
e.g. fetching image "..." (linux/amd64).

Signed-off-by: Kevin Tijssen <kevin.tijssen@siderolabs.com>
Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
2026-03-25 08:59:17 +04:00
Andrey Smirnov
a02d578faa
feat: add support for mirroring image signatures
Enable signature verification in image cache & airgapped tests.

Fixes #12892

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
2026-03-09 20:07:51 +04:00
Mateusz Urbanek
35dd612a5e
fix: add more resilient move
Fixes #12259

Signed-off-by: Mateusz Urbanek <mateusz.urbanek@siderolabs.com>
2025-11-21 10:11:50 +01:00
Mateusz Urbanek
c0772b8eda
feat: add airgapped mode to QEMU backed talos
Add new `--airgapped` flag to talos cluster create (qemu)
to disable NAT in the VMs to effectively become airgapped.

Signed-off-by: Mateusz Urbanek <mateusz.urbanek@siderolabs.com>
2025-10-22 18:10:27 +02:00
Mateusz Urbanek
dbdd2b237e
feat: add static registry to talosctl
Fixes #11928
Fixes #11929

Signed-off-by: Mateusz Urbanek <mateusz.urbanek@siderolabs.com>
2025-10-16 14:08:17 +02:00
Andrey Smirnov
190d34af45
fix: image cache generation on Windows
Fixes #10558

The core issue is mix of path separators: the resulting image layer
should contain `/` (UNIX), while native separator might be different
(`\` on Windows).

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
2025-04-01 17:43:11 +04:00
Noel Georgi
f75604313d
chore: support gcr.io auth for cache and image gen
Support gcr.io auth for cache and image gen.

Signed-off-by: Noel Georgi <git@frezbo.dev>
2024-12-19 15:20:19 +05:30
Noel Georgi
ab5bb68842
fix: generate and serve registries with port
Fix generating and serving registies having port in them.
This is needed to copy and serve imagecache from a vfat filesystem.

Signed-off-by: Noel Georgi <git@frezbo.dev>
2024-12-14 09:33:39 +05:30
Noel Georgi
136b129121
chore: drop semicolon for supporting vfat filesystems
Drop semicolon in generated cache to support copying image cache to vfat
filesystems.

Fixes: #9935

Signed-off-by: Noel Georgi <git@frezbo.dev>
2024-12-12 23:40:06 +05:30
Dmitriy Matrenichev
c4724fc975
chore: add integration tests for image-cache
Provide separate `integration/image-cache` tag.

Closes #9860

Signed-off-by: Dmitriy Matrenichev <dmitry.matrenichev@siderolabs.com>
2024-12-06 20:28:34 +03:00
Noel Georgi
939c555f9a
fix: imager disk image-cache generator
Move things around so `talosctl` is not dependent on `go-blockdevice`.

Signed-off-by: Noel Georgi <git@frezbo.dev>
2024-11-26 21:47:08 +05:30
Noel Georgi
1bac0b183a
feat: support generating disk images with image cache
Add support for generating disk images with image cache.

Fixes: #9616

Signed-off-by: Noel Georgi <git@frezbo.dev>
2024-11-26 18:52:25 +05:30
Dmitriy Matrenichev
0ffb2187a3
feat: registry proxy
Implement container registry proxy.

Signed-off-by: Dmitriy Matrenichev <dmitry.matrenichev@siderolabs.com>
2024-11-21 19:28:10 +03:00
Noel Georgi
5de6275b8f
chore: image cache generator improvements
* Save image in OCI format, so imager can either use as OCI input or from
a registry.
* Support caching layers to a path, so subsequent runs are faster

Signed-off-by: Noel Georgi <git@frezbo.dev>
2024-11-21 20:09:50 +05:30
Noel Georgi
61b9129e0c
fix: add directory entries and filemode to tarball
Always add directory entries to tarball.
Handle directory v/s files in tarball `build`.
Use the source file info to set file permissions.

Signed-off-by: Noel Georgi <git@frezbo.dev>
2024-11-21 15:22:28 +05:30
Dmitriy Matrenichev
0e3ed30723
fix: no longer leak Close reader
Optimize code.

Signed-off-by: Dmitriy Matrenichev <dmitry.matrenichev@siderolabs.com>
2024-11-20 00:36:20 +03:00
Andrey Smirnov
f400ae911b
fix: small fixes for image cache generation
* print some progress
* properly save manifests for image refs which are both tagged and
  digested
* skip pulling duplicate blobs

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
Signed-off-by: Noel Georgi <git@frezbo.dev>
2024-11-20 00:02:38 +05:30
Noel Georgi
93754b7de6
fix: config and platform manifest generation
The initial code missed saving the image config and the platform
specific manifest.

Signed-off-by: Noel Georgi <git@frezbo.dev>
2024-11-19 23:20:18 +05:30
Noel Georgi
95b2fc946e
feat: image cache gen
Fixes: #9611

Signed-off-by: Noel Georgi <git@frezbo.dev>
2024-11-19 19:08:38 +05:30