diff --git a/oci/auth/aws/auth.go b/oci/auth/aws/auth.go index ca8c61a7..58d6a23e 100644 --- a/oci/auth/aws/auth.go +++ b/oci/auth/aws/auth.go @@ -125,6 +125,5 @@ func (c *Client) Login(ctx context.Context, autoLogin bool, image string) (authn auth := authn.FromConfig(authConfig) return auth, nil } - ctrl.LoggerFrom(ctx).Info("ECR authentication is not enabled. To enable, set the controller flag --aws-autologin-for-ecr") return nil, fmt.Errorf("ECR authentication failed: %w", oci.ErrUnconfiguredProvider) } diff --git a/oci/auth/azure/auth.go b/oci/auth/azure/auth.go index c09297c5..61a63b36 100644 --- a/oci/auth/azure/auth.go +++ b/oci/auth/azure/auth.go @@ -123,6 +123,5 @@ func (c *Client) Login(ctx context.Context, autoLogin bool, image string, ref na auth := authn.FromConfig(authConfig) return auth, nil } - ctrl.LoggerFrom(ctx).Info("ACR authentication is not enabled. To enable, set the controller flag --azure-autologin-for-acr") return nil, fmt.Errorf("ACR authentication failed: %w", oci.ErrUnconfiguredProvider) } diff --git a/oci/auth/gcp/auth.go b/oci/auth/gcp/auth.go index 9c4f9d84..6876f219 100644 --- a/oci/auth/gcp/auth.go +++ b/oci/auth/gcp/auth.go @@ -115,6 +115,5 @@ func (c *Client) Login(ctx context.Context, autoLogin bool, image string, ref na auth := authn.FromConfig(authConfig) return auth, nil } - ctrl.LoggerFrom(ctx).Info("GCR authentication is not enabled. To enable, set the controller flag --gcp-autologin-for-gcr") return nil, fmt.Errorf("GCR authentication failed: %w", oci.ErrUnconfiguredProvider) }