k3s/pkg/credentialprovider/gcp
Rudi Chiarito ca6bdba014 Allow lazy binding in credential providers; don't use it in AWS yet
This is step one for cross-region ECR support and has no visible effects yet.
I'm not crazy about the name LazyProvide. Perhaps the interface method could
remain like that and the package method of the same name could become
LateBind(). I still don't understand why the credential provider has a
DockerConfigEntry that has the same fields but is distinct from
docker.AuthConfiguration. I had to write a converter now that we do that in
more than one place.

In step two, I'll add another intermediate, lazy provider for each AWS region,
whose empty LazyAuthConfiguration will have a refresh time of months or years.
Behind the scenes, it'll use an actual ecrProvider with the usual ~12 hour
credentials, that will get created (and later refreshed) only when kubelet is
attempting to pull an image. If we simply turned ecrProvider directly into a
lazy provider, we would bypass all the caching and get new credentials for
each image pulled.
2016-03-29 15:39:30 -04:00
..
doc.go Make copyright ownership statement generic 2015-05-01 17:49:56 -04:00
jwt.go Allow lazy binding in credential providers; don't use it in AWS yet 2016-03-29 15:39:30 -04:00
jwt_test.go Comment out calls to httptest.Server.Close() to work around 2016-01-11 23:02:11 -08:00
metadata.go Allow lazy binding in credential providers; don't use it in AWS yet 2016-03-29 15:39:30 -04:00
metadata_test.go support CIDRs in NO_PROXY 2016-03-16 16:22:54 -04:00