Skip to content

Commit

Permalink
Fix expected keychain interface in image builder
Browse files Browse the repository at this point in the history
  • Loading branch information
deadlycoconuts committed Mar 12, 2024
1 parent f9a23ae commit 7eebc67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/pkg/imagebuilder/imagebuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,8 @@ func (c *imageBuilder) imageExists(imageName, imageTag string) bool {
// https://github.com/google/go-containerregistry/blob/master/cmd/crane/README.md
// https://github.com/google/go-containerregistry/blob/master/pkg/v1/google/README.md
func (c *imageBuilder) imageRefExists(imageName, imageTag string) (bool, error) {
keychain := authn.DefaultKeychain
var keychain authn.Keychain
keychain = authn.DefaultKeychain
if strings.Contains(c.config.DockerRegistry, "gcr.io") {
keychain = google.Keychain
}
Expand Down

0 comments on commit 7eebc67

Please sign in to comment.