From 3725a34cbf592697d5fca3089d14045c66975fda Mon Sep 17 00:00:00 2001 From: Miloslav Trmač Date: Sat, 11 Sep 2021 23:15:49 +0200 Subject: Call MakeXRegistryAuthHeader instead of Header(..., XRegistryAuthHeader) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit All callers hard-code a header value, so this is actually shorter. Should not change behavior. Signed-off-by: Miloslav Trmač --- pkg/bindings/play/play.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/bindings/play') diff --git a/pkg/bindings/play/play.go b/pkg/bindings/play/play.go index 2cd7c3997..64a2ae6ae 100644 --- a/pkg/bindings/play/play.go +++ b/pkg/bindings/play/play.go @@ -40,7 +40,7 @@ func Kube(ctx context.Context, path string, options *KubeOptions) (*entities.Pla } // TODO: have a global system context we can pass around (1st argument) - header, err := auth.Header(nil, auth.XRegistryAuthHeader, options.GetAuthfile(), options.GetUsername(), options.GetPassword()) + header, err := auth.MakeXRegistryAuthHeader(nil, options.GetAuthfile(), options.GetUsername(), options.GetPassword()) if err != nil { return nil, err } -- cgit v1.2.3-54-g00ecf