Merge pull request #671 from GLYASAI/v2cluster

fix '/v2/cluster' 500
This commit is contained in:
barnettZQG 2020-02-13 22:28:24 +08:00 committed by GitHub
commit 43aa3a51b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,6 +110,7 @@ func NewKubeClient(cfg *conf.Conf, clientset kubernetes.Interface) (KubeClient,
sharedInformers.Core().V1().Pods().Informer()
sharedInformers.Start(stop)
return &kubeClient{
kubeclient: clientset,
stop: stop,
sharedInformers: sharedInformers,
}, nil