Skip to content

Commit

Permalink
Add debug logs to google.Keychain (#1390)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonjohnsonjr authored Jun 18, 2022
1 parent 623023e commit 9006ebf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/v1/google/keychain.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,13 @@ func (gk *googleKeychain) Resolve(target authn.Resource) (authn.Authenticator, e
func resolve() authn.Authenticator {
auth, envErr := NewEnvAuthenticator()
if envErr == nil && auth != authn.Anonymous {
logs.Debug.Println("google.Keychain: using Application Default Credentials")
return auth
}

auth, gErr := NewGcloudAuthenticator()
if gErr == nil && auth != authn.Anonymous {
logs.Debug.Println("google.Keychain: using gcloud fallback")
return auth
}

Expand Down

0 comments on commit 9006ebf

Please sign in to comment.