From 27f911d663a338c3362ae9e9186a352dde204190 Mon Sep 17 00:00:00 2001 From: Mike Brown Date: Thu, 16 Apr 2020 13:23:56 -0500 Subject: [PATCH] removes the error when tls is configured for https but http is tried first Signed-off-by: Mike Brown --- pkg/server/image_pull.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkg/server/image_pull.go b/pkg/server/image_pull.go index e776c050e..06be01ad5 100644 --- a/pkg/server/image_pull.go +++ b/pkg/server/image_pull.go @@ -323,10 +323,6 @@ func (c *criService) registryHosts(auth *runtime.AuthConfig) docker.RegistryHost config = c.config.Registry.Configs[u.Host] ) - if u.Scheme != "https" && config.TLS != nil { - return nil, errors.Errorf("tls provided for http endpoint %q", e) - } - if config.TLS != nil { transport.TLSClientConfig, err = c.getTLSConfig(*config.TLS) if err != nil {