From 5333f411c59e4bdf89a5ff56b368667b6bb7451e Mon Sep 17 00:00:00 2001 From: Terry Howe Date: Mon, 2 Dec 2024 08:53:32 -0700 Subject: [PATCH] fix: revert OCI feature that creates breaking change Signed-off-by: Terry Howe --- pkg/registry/client.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/pkg/registry/client.go b/pkg/registry/client.go index 0c60a47b8..aa3f46197 100644 --- a/pkg/registry/client.go +++ b/pkg/registry/client.go @@ -216,16 +216,6 @@ func ClientOptAuthorizer(authorizer auth.Client) ClientOption { } } -// ClientOptRegistryAuthorizer returns a function that sets the registry authorizer setting on a client options set. This -// can be used to override the default authorization mechanism. -// -// Depending on the use-case you may need to set both ClientOptAuthorizer and ClientOptRegistryAuthorizer. -func ClientOptRegistryAuthorizer(registryAuthorizer *registryauth.Client) ClientOption { - return func(client *Client) { - client.registryAuthorizer = registryAuthorizer - } -} - // ClientOptCredentialsFile returns a function that sets the credentialsFile setting on a client options set func ClientOptCredentialsFile(credentialsFile string) ClientOption { return func(client *Client) {