replace client with clientset in kubelet and other places

This commit is contained in:
Chao Xu
2016-02-01 14:30:47 -08:00
parent fe7887f1ec
commit cddd7b56a4
65 changed files with 643 additions and 358 deletions

View File

@@ -21,15 +21,15 @@ package network
import (
"k8s.io/kubernetes/pkg/api"
client "k8s.io/kubernetes/pkg/client/unversioned"
clientset "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_1"
kubecontainer "k8s.io/kubernetes/pkg/kubelet/container"
)
type fakeNetworkHost struct {
kubeClient client.Interface
kubeClient clientset.Interface
}
func NewFakeHost(kubeClient client.Interface) *fakeNetworkHost {
func NewFakeHost(kubeClient clientset.Interface) *fakeNetworkHost {
host := &fakeNetworkHost{kubeClient: kubeClient}
return host
}
@@ -38,7 +38,7 @@ func (fnh *fakeNetworkHost) GetPodByName(name, namespace string) (*api.Pod, bool
return nil, false
}
func (fnh *fakeNetworkHost) GetKubeClient() client.Interface {
func (fnh *fakeNetworkHost) GetKubeClient() clientset.Interface {
return nil
}