func (j *TestJig) CreateUDPService(tweak func(svc *v1.Service)) (*v1.Service, error) {
	svc := j.newServiceTemplate(v1.ProtocolUDP, 80)
	if tweak != nil {
		tweak(svc)
	}
	result, err := j.Client.CoreV1().Services(j.Namespace).Create(context.TODO(), svc, metav1.CreateOptions{})
	if err != nil {
		return nil, fmt.Errorf("failed to create UDP Service %q: %v", svc.Name, err)
	}
	return j.sanityCheckService(result, svc.Spec.Type)
}
// CreateUDPService creates a new UDP Service based on the j's
// defaults.  Callers can provide a function to tweak the Service object before
// it is created.
CreateUDPService creates a new UDP Service based on the j's
defaults.  Callers can provide a function to tweak the Service object before
it is created.
// CreateUDPService creates a new UDP Service based on the j ' s // defaults . Callers can provide a function to tweak the Service object before // it is created .
func (j *TestJig) CreateUDPService(tweak func(svc *v1.Service)) (*v1.Service, error) {
	svc := j.newServiceTemplate(v1.ProtocolUDP, 80)
	if tweak != nil {
		tweak(svc)
	}
	result, err := j.Client.CoreV1().Services(j.Namespace).Create(context.TODO(), svc, metav1.CreateOptions{})
	if err != nil {
		return nil, fmt.Errorf("failed to create UDP Service %q: %v", svc.Name, err)
	}
	return j.sanityCheckService(result, svc.Spec.Type)
}
func ( j * TestJig ) CreateUDPService ( tweak func ( svc * v1 . Service ) ) ( * v1 . Service , error ) { svc := j . newServiceTemplate ( v1 . ProtocolUDP , 80 ) if tweak != nil { tweak ( svc ) } result , err := j . Client . CoreV1 ( ) . Services ( j . Namespace ) . Create ( context . TODO ( ) , svc , metav1 . CreateOptions { } ) if err != nil { return nil , fmt . Errorf ( " " , svc . Name , err ) } return j . sanityCheckService ( result , svc . Spec . Type ) }
CreateUDPService creates a new UDP Service based on the j's
defaults.
CreateUDPService creates a new UDP Service based on the j ' s defaults .