Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include target resource in credential warning #882

Merged
merged 1 commit into from Dec 22, 2020

Conversation

jonjohnsonjr
Copy link
Collaborator

This should be slightly less confusing the first time you see it, we can look at removing this entirely by skipping ping and only falling back on 401, but that might take a while to implement.

@@ -49,7 +49,7 @@ func WithAuthFromKeychain(keys authn.Keychain) ListerOption {
return err
}
if auth == authn.Anonymous {
logs.Warn.Println("No matching credentials were found, falling back on anonymous")
logs.Warn.Printf("No matching credentials were found for %q, falling back on anonymous", l.repo.Registry)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need a newline?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, from https://golang.org/pkg/log/:

Every log message is output on a separate line: if the message being printed does not end in a newline, the logger will add one.

@codecov-io
Copy link

Codecov Report

Merging #882 (395b8ca) into master (39d4b23) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #882   +/-   ##
=======================================
  Coverage   74.14%   74.14%           
=======================================
  Files         107      107           
  Lines        4567     4567           
=======================================
  Hits         3386     3386           
  Misses        672      672           
  Partials      509      509           
Impacted Files Coverage Δ
pkg/v1/google/options.go 70.58% <100.00%> (ø)
pkg/v1/remote/options.go 54.54% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 39d4b23...395b8ca. Read the comment docs.

@jonjohnsonjr jonjohnsonjr merged commit aae0202 into google:master Dec 22, 2020
@jonjohnsonjr jonjohnsonjr deleted the matching-creds branch December 22, 2020 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants