func NodeAccessEndpoint(e *v1alpha1.EtcdCluster, index int32) string {
	clientPort := constants.EtcdDefaultClientPort
	if e.Spec.ClientPort != nil {
		clientPort = int(*e.Spec.ClientPort)
	}
	return fmt.Sprintf("%s://%s:%d", SchemeForClient(e), fmt.Sprintf("%s-%d.%s.%s.svc.%s", NameForTApp(e), index, NameForHeadlessService(e), e.Namespace, ClusterDomain(e)), clientPort)
}
// NodeAccessEndpoint return the endpoint address for the specified etcd node
NodeAccessEndpoint return the endpoint address for the specified etcd node
// NodeAccessEndpoint return the endpoint address for the specified etcd node
func NodeAccessEndpoint(e *v1alpha1.EtcdCluster, index int32) string {
	clientPort := constants.EtcdDefaultClientPort
	if e.Spec.ClientPort != nil {
		clientPort = int(*e.Spec.ClientPort)
	}
	return fmt.Sprintf("%s://%s:%d", SchemeForClient(e), fmt.Sprintf("%s-%d.%s.%s.svc.%s", NameForTApp(e), index, NameForHeadlessService(e), e.Namespace, ClusterDomain(e)), clientPort)
}
func NodeAccessEndpoint ( e * v1alpha1 . EtcdCluster , index int32 ) string { clientPort := constants . EtcdDefaultClientPort if e . Spec . ClientPort != nil { clientPort = int ( * e . Spec . ClientPort ) } return fmt . Sprintf ( " " , SchemeForClient ( e ) , fmt . Sprintf ( " " , NameForTApp ( e ) , index , NameForHeadlessService ( e ) , e . Namespace , ClusterDomain ( e ) ) , clientPort ) }
NodeAccessEndpoint return the endpoint address for the specified etcd node
NodeAccessEndpoint return the endpoint address for the specified etcd node