Auto configure authentication helper for gcr.io#989
Auto configure authentication helper for gcr.io#989dlorenc merged 3 commits intoGoogleContainerTools:masterfrom
Conversation
pkg/skaffold/gcp/auth.go
Outdated
|
|
||
| _, present := cf.CredentialHelpers[registry] | ||
| if !present { | ||
| cf.CredentialHelpers[registry] = "gcloud" |
There was a problem hiding this comment.
Do we make sure gcloud is installed anywhere?
It's also possible to use the "gcr" credential helper which handles it's own authentication without gcloud. I'm not sure how common that is, though.
There was a problem hiding this comment.
I'm going to add the check indeed.
I'd rather ignore that "gcr" credential helper can be used since It's not the solution documented here
Users can still use it if they want though.
Fixes GoogleContainerTools#966 Signed-off-by: David Gageot <david@gageot.net>
Signed-off-by: David Gageot <david@gageot.net>
|
@dlorenc it should be good now. |
|
So there's good news and bad news. 👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there. 😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request. Note to project maintainer: This is a terminal state, meaning the |
|
I added some debug logging on why the helper get's skipped, but now I've made the CLA bot angry :( I confirm that I'm OK with my commit being used :) |
|
I'm ok with @dlorenc's commit ;-) |
Codecov Report
@@ Coverage Diff @@
## master #989 +/- ##
==========================================
- Coverage 40.64% 40.44% -0.21%
==========================================
Files 68 69 +1
Lines 2967 3019 +52
==========================================
+ Hits 1206 1221 +15
- Misses 1637 1672 +35
- Partials 124 126 +2
Continue to review full report at Codecov.
|
Fixes #966
Signed-off-by: David Gageot david@gageot.net