From da362aff4e26a661e93c07365a93b0c38024c598 Mon Sep 17 00:00:00 2001 From: Jeff Date: Tue, 5 Nov 2019 09:01:56 +0800 Subject: [PATCH] fix slow component status api --- pkg/models/types.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/models/types.go b/pkg/models/types.go index 9144a20fb..f22fbd4ad 100644 --- a/pkg/models/types.go +++ b/pkg/models/types.go @@ -96,9 +96,8 @@ type NodeStatus struct { } type HealthStatus struct { - KubeSphereComponents []ComponentStatus `json:"kubesphereStatus" description:"kubesphere components status"` - KubernetesComponents []corev1.ComponentStatus `json:"kubernetesStatus" description:"kubernetes components status"` - NodeStatus NodeStatus `json:"nodeStatus" description:"nodes status"` + KubeSphereComponents []ComponentStatus `json:"kubesphereStatus" description:"kubesphere components status"` + NodeStatus NodeStatus `json:"nodeStatus" description:"nodes status"` } type PodInfo struct {