func AccessURL(e *v1alpha1.EtcdCluster) string {
	return fmt.Sprintf("%s://%s:%d", SchemeForClient(e), fmt.Sprintf("%s.%s.svc.%s", NameForAccessService(e), e.Namespace, ClusterDomain(e)), func() int32 {
		if e.Spec.ClientPort != nil {
			return *e.Spec.ClientPort
		}
		return constants.EtcdDefaultClientPort
	}())
}
// AccessURL return the etcd cluster's advertise URL, you can use this URL to access the etcd cluster
AccessURL return the etcd cluster's advertise URL, you can use this URL to access the etcd cluster
// AccessURL return the etcd cluster ' s advertise URL you can use this URL to access the etcd cluster
func AccessURL(e *v1alpha1.EtcdCluster) string {
	return fmt.Sprintf("%s://%s:%d", SchemeForClient(e), fmt.Sprintf("%s.%s.svc.%s", NameForAccessService(e), e.Namespace, ClusterDomain(e)), func() int32 {
		if e.Spec.ClientPort != nil {
			return *e.Spec.ClientPort
		}
		return constants.EtcdDefaultClientPort
	}())
}
func AccessURL ( e * v1alpha1 . EtcdCluster ) string { return fmt . Sprintf ( " " , SchemeForClient ( e ) , fmt . Sprintf ( " " , NameForAccessService ( e ) , e . Namespace , ClusterDomain ( e ) ) , func ( ) int32 { if e . Spec . ClientPort != nil { return * e . Spec . ClientPort } return constants . EtcdDefaultClientPort } ( ) ) }
AccessURL return the etcd cluster's advertise URL, you can use this URL to access the etcd cluster
AccessURL return the etcd cluster ' s advertise URL you can use this URL to access the etcd cluster