k3s/pkg/credentialprovider
Kubernetes Submit Queue 609b9e5124 Merge pull request #31881 from guangxuli/get_docker_auth
Automatic merge from submit-queue

make function ReadDockerConfigFile more flexible

In our code, the public function `ReadDockerConfigFile` looks like not enough flexible:
when I want to use this function to get docker config info from a specific path, I have to call  `SetPreferredDockercfgPath`, and then the setting preferredPath will be valid in function  `ReadDockerConfigFile`.  I know in our code, we call  `SetPreferredDockercfgPath` in one place ,then call `ReadDockerConfigFile` in another place, it was not in same context. But it looks like not thread safety. 
 I think if user who use our code want to get docker config from a specific path, it is reasonable to call directly `ReadDockerConfigFile ` with a dockerconfigPath argument, and it can avoid some scenarios that thread is not safety . 
I add a test case for this function.
2016-10-16 11:41:08 -07:00
..
aws Wrong path for log_handler.go 2016-07-27 16:04:20 +08:00
gcp remove the tmp file 2016-09-22 23:37:27 +08:00
OWNERS Move blunderbuss assignees into tree 2016-03-02 20:46:32 -05:00
config.go make function ReadDockerConfigFile more flexible 2016-10-14 23:23:46 +08:00
config_test.go make function ReadDockerConfigFile more flexible 2016-10-14 23:23:46 +08:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
keyring.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
keyring_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
plugins.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
provider.go Check if service accounts exist in gcr credential provider 2016-07-15 11:41:02 -07:00
provider_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00