Merge pull request #3347 from erictune/kclientarg
Pass client into Kubelet.
This commit is contained in:
commit
da8dc5360e
@ -33,6 +33,7 @@ import (
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/api/validation"
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/capabilities"
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/client"
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/client/record"
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/health"
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/dockertools"
|
||||
@ -64,6 +65,7 @@ func NewMainKubelet(
|
||||
hostname string,
|
||||
dockerClient dockertools.DockerInterface,
|
||||
etcdClient tools.EtcdClient,
|
||||
kubeClient *client.Client,
|
||||
rootDirectory string,
|
||||
networkContainerImage string,
|
||||
resyncInterval time.Duration,
|
||||
|
@ -269,6 +269,7 @@ func createAndInitKubelet(kc *KubeletConfig, pc *config.PodConfig) (*kubelet.Kub
|
||||
kc.Hostname,
|
||||
kc.DockerClient,
|
||||
kc.EtcdClient,
|
||||
kc.KubeClient,
|
||||
kc.RootDirectory,
|
||||
kc.NetworkContainerImage,
|
||||
kc.SyncFrequency,
|
||||
|
Loading…
Reference in New Issue
Block a user