From a6a7eb443cf2cf58e24d11f70f5c387e956f2784 Mon Sep 17 00:00:00 2001 From: Tom Runyon Date: Wed, 28 Dec 2022 15:00:10 -0500 Subject: [PATCH] add the logic for http back when creating a client Signed-off-by: Tom Runyon Signed-off-by: Tom Runyon --- pkg/registry/client.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/registry/client.go b/pkg/registry/client.go index 134bb4ff3..b8094e675 100644 --- a/pkg/registry/client.go +++ b/pkg/registry/client.go @@ -139,6 +139,9 @@ func NewClient(options ...ClientOption) (*Client, error) { if client.httpClient != nil { opts = append(opts, auth.WithResolverClient(client.httpClient)) } + if client.plainHTTP { + opts = append(opts, auth.WithResolverPlainHTTP()) + } resolver, err := client.authorizer.ResolverWithOpts(opts...) if err != nil {