tests/e2e: backport e2e cluster setup

Finish backporting the remaining functions from the original backport
from PR #15620.

Backport of commit 65add8cec44b32682e59d2596a592038bac90dcd.

Co-authored-by: Marek Siarkowicz <siarkowicz@google.com>
Signed-off-by: Ivan Valdes <ivan@vald.es>
This commit is contained in:
Ivan Valdes 2024-02-20 09:19:15 -08:00
parent fd228f2c27
commit 9a3450ae74
No known key found for this signature in database
GPG Key ID: 4037D37741ED0CC5

View File

@ -438,6 +438,14 @@ func (epc *etcdProcessCluster) EndpointsV3() []string {
return epc.endpoints(func(ep etcdProcess) []string { return ep.EndpointsV3() })
}
func (epc *etcdProcessCluster) EndpointsGRPC() []string {
return epc.endpoints(func(ep etcdProcess) []string { return ep.EndpointsGRPC() })
}
func (epc *etcdProcessCluster) EndpointsHTTP() []string {
return epc.endpoints(func(ep etcdProcess) []string { return ep.EndpointsHTTP() })
}
func (epc *etcdProcessCluster) endpoints(f func(ep etcdProcess) []string) (ret []string) {
for _, p := range epc.procs {
ret = append(ret, f(p)...)