mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-13 13:55:41 +00:00
Modify the judgement condtion in elasticsearch_logging_discovery.go
The number of endpoints's addresses can be greater or equal to the value of "MINIMUM_MASTER_NODES". Signed-off-by: zhihui wu <wu.zhihui1@zte.com.cn>
This commit is contained in:
parent
cf3a930938
commit
eed65f75f9
@ -113,7 +113,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
addrs = flattenSubsets(endpoints.Subsets)
|
addrs = flattenSubsets(endpoints.Subsets)
|
||||||
glog.Infof("Found %s", addrs)
|
glog.Infof("Found %s", addrs)
|
||||||
if len(addrs) > 0 && len(addrs) == count {
|
if len(addrs) > 0 && len(addrs) >= count {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user