mirror of
https://github.com/bloomberg/goldpinger.git
synced 2026-08-28 15:57:18 +00:00
Compare the actual host ips
Signed-off-by: Mikolaj Pawlikowski <mikolaj@pawlikowski.pl>
This commit is contained in:
@@ -96,8 +96,8 @@ func CheckCluster(ctx context.Context) *models.ClusterHealthResults {
|
||||
}
|
||||
// if we get a response, let's check we get the expected nodes
|
||||
observedNodes := []string{}
|
||||
for peer := range resp.Response.PodResults {
|
||||
observedNodes = append(observedNodes, peer)
|
||||
for _, peer := range resp.Response.PodResults {
|
||||
observedNodes = append(observedNodes, string(peer.HostIP))
|
||||
}
|
||||
sort.Strings(observedNodes)
|
||||
if len(observedNodes) != len(expectedNodes) {
|
||||
|
||||
Reference in New Issue
Block a user