Commit 8202e930 authored by Vitor Savian's avatar Vitor Savian Committed by Brad Davidson

Fix wildcard with embbeded registry test

Signed-off-by: 's avatarVitor Savian <vitor.savian@suse.com> Signed-off-by: 's avatarBrad Davidson <brad.davidson@rancher.com> (cherry picked from commit 59c724f7) Signed-off-by: 's avatarBrad Davidson <brad.davidson@rancher.com>
parent ed5de70d
......@@ -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"),
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment