func newAdminService(cr *v1alpha1.RethinkDBCluster) *corev1.Service {
	svc := newService(cr)
	svc.ObjectMeta.Name = fmt.Sprintf("%s-%s", cr.Name, RethinkDBAdminKey)
	svc.Spec.Ports = []corev1.ServicePort{
		corev1.ServicePort{Port: RethinkDBHttpPort, Name: RethinkDBHttpKey},
	}
	return svc
}
// newAdminService constructs a new admin Service object.
newAdminService constructs a new admin Service object.
// newAdminService constructs a new admin Service object .
func newAdminService(cr *v1alpha1.RethinkDBCluster) *corev1.Service {
	svc := newService(cr)
	svc.ObjectMeta.Name = fmt.Sprintf("%s-%s", cr.Name, RethinkDBAdminKey)
	svc.Spec.Ports = []corev1.ServicePort{
		corev1.ServicePort{Port: RethinkDBHttpPort, Name: RethinkDBHttpKey},
	}
	return svc
}
func newAdminService ( cr * v1alpha1 . RethinkDBCluster ) * corev1 . Service { svc := newService ( cr ) svc . ObjectMeta . Name = fmt . Sprintf ( " " , cr . Name , RethinkDBAdminKey ) svc . Spec . Ports = [ ] corev1 . ServicePort { corev1 . ServicePort { Port : RethinkDBHttpPort , Name : RethinkDBHttpKey } , } return svc }
newAdminService constructs a new admin Service object.
newAdminService constructs a new admin Service object .