func (t *TestFixture) BuildServiceSpec() *v1.Service {
	service := &v1.Service{
		ObjectMeta: metav1.ObjectMeta{
			Name:      t.ServiceName,
			Namespace: t.Namespace,
		},
		Spec: v1.ServiceSpec{
			Selector: t.Labels,
			Ports: []v1.ServicePort{{
				Port:       80,
				TargetPort: intstr.FromInt(80),
			}},
		},
	}
	return service
}
// BuildServiceSpec builds default config for a service (which can then be changed)
BuildServiceSpec builds default config for a service (which can then be changed)
// BuildServiceSpec builds default config for a service ( which can then be changed )
func (t *TestFixture) BuildServiceSpec() *v1.Service {
	service := &v1.Service{
		ObjectMeta: metav1.ObjectMeta{
			Name:      t.ServiceName,
			Namespace: t.Namespace,
		},
		Spec: v1.ServiceSpec{
			Selector: t.Labels,
			Ports: []v1.ServicePort{{
				Port:       80,
				TargetPort: intstr.FromInt(80),
			}},
		},
	}
	return service
}
func ( t * TestFixture ) BuildServiceSpec ( ) * v1 . Service { service := & v1 . Service { ObjectMeta : metav1 . ObjectMeta { Name : t . ServiceName , Namespace : t . Namespace , } , Spec : v1 . ServiceSpec { Selector : t . Labels , Ports : [ ] v1 . ServicePort { { Port : 80 , TargetPort : intstr . FromInt ( 80 ) , } } , } , } return service }
BuildServiceSpec builds default config for a service (which can then be changed)
BuildServiceSpec builds default config for a service ( which can then be changed )