Skip to content

Commit

Permalink
Merge pull request #991 from chitrangpatel/cleanup-logs
Browse files Browse the repository at this point in the history
Cleanup Logs
  • Loading branch information
chitrangpatel authored Mar 22, 2024
2 parents 6033bd4 + 9466f92 commit 746f95b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gke-deploy/services/remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ func NewRemote(ctx context.Context) (*Remote, error) {
func (*Remote) Image(ctx context.Context, ref name.Reference) (v1.Image, error) {
img, err := remote.Image(ref, remote.WithAuthFromKeychain(authn.DefaultKeychain))
if err != nil {
fmt.Printf("Error fetching digest: %v\n Attempting to fetch from Google's container/artifact registry.\n", err)
client, err := google.DefaultClient(ctx, "https://www.googleapis.com/auth/cloud-platform")
if err != nil {
fmt.Printf("Error fetching digest: %v\n", err)
return nil, err
}
return remote.Image(ref, remote.WithTransport(client.Transport))
Expand Down

0 comments on commit 746f95b

Please sign in to comment.