Skip to content

Commit 88efb49

Browse files
mertyildirancorest
andauthored
Add nodes pods (#23)
* Add nodes and pods info to hub health * restore --------- Co-authored-by: Volodymyr Stoiko <me@volodymyrstoiko.com>
1 parent ba52512 commit 88efb49

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

health.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ type HealthWorkerLicenseData struct {
4040

4141
type HealthHub struct {
4242
Workers []HealthHubWorker `json:"workers"`
43+
Nodes []HealthHubNode `json:"nodes"`
4344
NodeName string `json:"nodeName"`
4445
ClusterID string `json:"clusterID"`
4546
Version string `json:"version"`
@@ -56,3 +57,8 @@ type HealthHubWorker struct {
5657
Addr string `json:"addr"`
5758
PodName string `json:"podName"`
5859
}
60+
61+
type HealthHubNode struct {
62+
NodeName string `json:"nodeName"`
63+
PodCount int `json:"podCount"`
64+
}

0 commit comments

Comments
 (0)