add kubesphereversion field for cluser.status

Signed-off-by: yuswift <yuswiftli@yunify.com>

adopt reviews from @LinuxSuRen
This commit is contained in:
yuswift
2021-04-07 11:19:26 +08:00
parent 828d2c6d37
commit 3b00fc6d5e
3 changed files with 161 additions and 139 deletions

View File

@@ -136,6 +136,9 @@ type ClusterStatus struct {
// GitVersion of the kubernetes cluster, this field is populated by cluster controller
KubernetesVersion string `json:"kubernetesVersion,omitempty"`
// GitVersion of the /kapis/version api response, this field is populated by cluster controller
KubeSphereVersion string `json:"kubeSphereVersion,omitempty"`
// Count of the kubernetes cluster nodes
// This field may not reflect the instant status of the cluster.
NodeCount int `json:"nodeCount,omitempty"`