mirror of https://github.com/k3s-io/k3s.git
Fix wildcard with embbeded registry test
Signed-off-by: Vitor Savian <vitor.savian@suse.com> Signed-off-by: Brad Davidson <brad.davidson@rancher.com>pull/9648/head
parent
f82d438f39
commit
59c724f7a6
|
@ -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: ®istries.TLSConfig{
|
||||
CAFile: "server-ca",
|
||||
KeyFile: "client-key",
|
||||
CertFile: "client-cert",
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
URL: u("https://registry.example.com/v2"),
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue