Fix wildcard with embbeded registry test

Signed-off-by: Vitor Savian <vitor.savian@suse.com>
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
This commit is contained in:
Vitor Savian 2024-03-05 15:39:26 -03:00 committed by Brad Davidson
parent f82d438f39
commit 59c724f7a6
1 changed files with 10 additions and 2 deletions

View File

@ -1148,8 +1148,16 @@ func Test_UnitGetHostConfigs(t *testing.T) {
"_default": templates.HostConfig{
Program: "k3s",
Endpoints: []templates.RegistryEndpoint{
// note that the embedded registry mirror is NOT listed as an endpoint.
// individual registries must be enabled for mirroring by name.
{
URL: u("https://127.0.0.1:6443/v2"),
Config: registries.RegistryConfig{
TLS: &registries.TLSConfig{
CAFile: "server-ca",
KeyFile: "client-key",
CertFile: "client-cert",
},
},
},
{
URL: u("https://registry.example.com/v2"),
},