func NewEtcdAccessService(e *v1alpha1.EtcdCluster) (*corev1.Service, error) {
	svc := &corev1.Service{
		ObjectMeta: v1.ObjectMeta{
			Namespace: e.Namespace,
			Name:      helpers.NameForAccessService(e),
		},
	}
	if err := applyAccessService(e, svc); err != nil {
		return nil, err
	}

	return svc, nil
}
// NewEtcdAccessService generate a service for client accessing etcd cluster, default type is ClusterIP.
// you can add an LoadBalancer provider annotation on the etcdcluster if you need a LoadBalancer type service
NewEtcdAccessService generate a service for client accessing etcd cluster, default type is ClusterIP.
you can add an LoadBalancer provider annotation on the etcdcluster if you need a LoadBalancer type service
// NewEtcdAccessService generate a service for client accessing etcd cluster default type is ClusterIP . // you can add an LoadBalancer provider annotation on the etcdcluster if you need a LoadBalancer type service
func NewEtcdAccessService(e *v1alpha1.EtcdCluster) (*corev1.Service, error) {
	svc := &corev1.Service{
		ObjectMeta: v1.ObjectMeta{
			Namespace: e.Namespace,
			Name:      helpers.NameForAccessService(e),
		},
	}
	if err := applyAccessService(e, svc); err != nil {
		return nil, err
	}
	return svc, nil
}
func NewEtcdAccessService ( e * v1alpha1 . EtcdCluster ) ( * corev1 . Service , error ) { svc := & corev1 . Service { ObjectMeta : v1 . ObjectMeta { Namespace : e . Namespace , Name : helpers . NameForAccessService ( e ) , } , } if err := applyAccessService ( e , svc ) ; err != nil { return nil , err } return svc , nil }
NewEtcdAccessService generate a service for client accessing etcd cluster, default type is ClusterIP.
NewEtcdAccessService generate a service for client accessing etcd cluster default type is ClusterIP .