From b6143ff9755c4d332bbe080304c9ccdcb317bd8e Mon Sep 17 00:00:00 2001 From: GLYASAI Date: Thu, 13 Feb 2020 22:02:27 +0800 Subject: [PATCH] fix '/v2/cluster' 500 --- node/kubecache/kube_cache.go | 1 + 1 file changed, 1 insertion(+) diff --git a/node/kubecache/kube_cache.go b/node/kubecache/kube_cache.go index 4b7fcf9d9..42889c6a1 100644 --- a/node/kubecache/kube_cache.go +++ b/node/kubecache/kube_cache.go @@ -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