func (j *TestJig) newServiceTemplate(proto v1.Protocol, port int32) *v1.Service {
	service := &v1.Service{
		ObjectMeta: metav1.ObjectMeta{
			Namespace: j.Namespace,
			Name:      j.Name,
			Labels:    j.Labels,
		},
		Spec: v1.ServiceSpec{
			Selector: j.Labels,
			Ports: []v1.ServicePort{
				{
					Protocol: proto,
					Port:     port,
				},
			},
		},
	}
	return service
}
// newServiceTemplate returns the default v1.Service template for this j, but
// does not actually create the Service.  The default Service has the same name
// as the j and exposes the given port.
newServiceTemplate returns the default v1.Service template for this j, but
does not actually create the Service.  The default Service has the same name
as the j and exposes the given port.
// newServiceTemplate returns the default v1 . Service template for this j but // does not actually create the Service . The default Service has the same name // as the j and exposes the given port .
func (j *TestJig) newServiceTemplate(proto v1.Protocol, port int32) *v1.Service {
	service := &v1.Service{
		ObjectMeta: metav1.ObjectMeta{
			Namespace: j.Namespace,
			Name:      j.Name,
			Labels:    j.Labels,
		},
		Spec: v1.ServiceSpec{
			Selector: j.Labels,
			Ports: []v1.ServicePort{
				{
					Protocol: proto,
					Port:     port,
				},
			},
		},
	}
	return service
}
func ( j * TestJig ) newServiceTemplate ( proto v1 . Protocol , port int32 ) * v1 . Service { service := & v1 . Service { ObjectMeta : metav1 . ObjectMeta { Namespace : j . Namespace , Name : j . Name , Labels : j . Labels , } , Spec : v1 . ServiceSpec { Selector : j . Labels , Ports : [ ] v1 . ServicePort { { Protocol : proto , Port : port , } , } , } , } return service }
newServiceTemplate returns the default v1.Service template for this j, but
does not actually create the Service.
newServiceTemplate returns the default v1 . Service template for this j but does not actually create the Service .