From 172919025e6ed5cbaf95ca2b1d9b149c6ae26c76 Mon Sep 17 00:00:00 2001 From: Noel Georgi Date: Thu, 19 Dec 2024 16:11:36 +0530 Subject: [PATCH] chore: support gcr.io keychain for registry auth Support gcr.io keychain for registry auth. Signed-off-by: Noel Georgi --- cmd/image-factory/cmd/service.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/image-factory/cmd/service.go b/cmd/image-factory/cmd/service.go index 8c2fbfb..35148c5 100644 --- a/cmd/image-factory/cmd/service.go +++ b/cmd/image-factory/cmd/service.go @@ -20,6 +20,7 @@ import ( "github.com/google/go-containerregistry/pkg/authn" "github.com/google/go-containerregistry/pkg/authn/github" "github.com/google/go-containerregistry/pkg/name" + "github.com/google/go-containerregistry/pkg/v1/google" "github.com/google/go-containerregistry/pkg/v1/remote" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promhttp" @@ -328,6 +329,7 @@ func remoteOptions() []remote.Option { authn.NewMultiKeychain( authn.DefaultKeychain, github.Keychain, + google.Keychain, ), ), }