mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-07 20:21:20 +00:00
Merge pull request #3844 from mikedanese/dockercfg-dirs
Check other dirs for .dockercfg
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user