Merge pull request #3844 from mikedanese/dockercfg-dirs

Check other dirs for .dockercfg
This commit is contained in:
Tim Hockin
2015-01-28 08:50:08 -08:00
4 changed files with 51 additions and 20 deletions

View File

@@ -27,6 +27,7 @@ import (
"github.com/GoogleCloudPlatform/kubernetes/cmd/kubelet/app"
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
"github.com/GoogleCloudPlatform/kubernetes/pkg/credentialprovider"
_ "github.com/GoogleCloudPlatform/kubernetes/pkg/healthz"
"github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet"
"github.com/GoogleCloudPlatform/kubernetes/pkg/master/ports"
@@ -127,6 +128,8 @@ func main() {
glog.Warningf("No API client: %v", err)
}
credentialprovider.SetPreferredDockercfgPath(*rootDirectory)
kcfg := standalone.KubeletConfig{
Address: address,
AllowPrivileged: *allowPrivileged,