talos/api/api.descriptors
Andrey Smirnov 372c62b728
fix: handle override path for registry mirrors correctly
See https://github.com/siderolabs/talos/discussions/10641

The problem is that `overridePath` config option should be per-endpoint,
not a global one.

As we can't easily change v1alpha1 config, change the interface instead,
and update the controller which generates final registry config to
use per-endpoint setting.

Ensure that `registryd` endpoint never uses `overridePath`.

E.g., with this PR:

```toml
[host]
  [host.'http://127.0.0.1:3172']
    capabilities = ['pull', 'resolve']
  [host.'http://172.20.0.1:5006/v2/']
    capabilities = ['pull', 'resolve']
    override_path = true
```

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
2025-04-07 14:33:38 +04:00

111 KiB