func (j *TestJig) newRCTemplate() *v1.ReplicationController {
	var replicas int32 = 1
	var grace int64 = 3 // so we don't race with kube-proxy when scaling up/down

	rc := &v1.ReplicationController{
		ObjectMeta: metav1.ObjectMeta{
			Namespace: j.Namespace,
			Name:      j.Name,
			Labels:    j.Labels,
		},
		Spec: v1.ReplicationControllerSpec{
			Replicas: &replicas,
			Selector: j.Labels,
			Template: &v1.PodTemplateSpec{
				ObjectMeta: metav1.ObjectMeta{
					Labels: j.Labels,
				},
				Spec: v1.PodSpec{
					Containers: []v1.Container{
						{
							Name:  "netexec",
							Image: imageutils.GetE2EImage(imageutils.Agnhost),
							Args:  []string{"netexec", "--http-port=80", "--udp-port=80"},
							ReadinessProbe: &v1.Probe{
								PeriodSeconds: 3,
								Handler: v1.Handler{
									HTTPGet: &v1.HTTPGetAction{
										Port: intstr.FromInt(80),
										Path: "/hostName",
									},
								},
							},
						},
					},
					TerminationGracePeriodSeconds: &grace,
				},
			},
		},
	}
	return rc
}
// newRCTemplate returns the default v1.ReplicationController object for
// this j, but does not actually create the RC.  The default RC has the same
// name as the j and runs the "netexec" container.
newRCTemplate returns the default v1.ReplicationController object for
this j, but does not actually create the RC.  The default RC has the same
name as the j and runs the "netexec" container.
// newRCTemplate returns the default v1 . ReplicationController object for // this j but does not actually create the RC . The default RC has the same // name as the j and runs the " netexec " container .
func (j *TestJig) newRCTemplate() *v1.ReplicationController {
	var replicas int32 = 1
	var grace int64 = 3 
	rc := &v1.ReplicationController{
		ObjectMeta: metav1.ObjectMeta{
			Namespace: j.Namespace,
			Name:      j.Name,
			Labels:    j.Labels,
		},
		Spec: v1.ReplicationControllerSpec{
			Replicas: &replicas,
			Selector: j.Labels,
			Template: &v1.PodTemplateSpec{
				ObjectMeta: metav1.ObjectMeta{
					Labels: j.Labels,
				},
				Spec: v1.PodSpec{
					Containers: []v1.Container{
						{
							Name:  "netexec",
							Image: imageutils.GetE2EImage(imageutils.Agnhost),
							Args:  []string{"netexec", "--http-port=80", "--udp-port=80"},
							ReadinessProbe: &v1.Probe{
								PeriodSeconds: 3,
								Handler: v1.Handler{
									HTTPGet: &v1.HTTPGetAction{
										Port: intstr.FromInt(80),
										Path: "/hostName",
									},
								},
							},
						},
					},
					TerminationGracePeriodSeconds: &grace,
				},
			},
		},
	}
	return rc
}
func ( j * TestJig ) newRCTemplate ( ) * v1 . ReplicationController { var replicas int32 = 1 var grace int64 = 3 rc := & v1 . ReplicationController { ObjectMeta : metav1 . ObjectMeta { Namespace : j . Namespace , Name : j . Name , Labels : j . Labels , } , Spec : v1 . ReplicationControllerSpec { Replicas : & replicas , Selector : j . Labels , Template : & v1 . PodTemplateSpec { ObjectMeta : metav1 . ObjectMeta { Labels : j . Labels , } , Spec : v1 . PodSpec { Containers : [ ] v1 . Container { { Name : " " , Image : imageutils . GetE2EImage ( imageutils . Agnhost ) , Args : [ ] string { " " , " " , " " } , ReadinessProbe : & v1 . Probe { PeriodSeconds : 3 , Handler : v1 . Handler { HTTPGet : & v1 . HTTPGetAction { Port : intstr . FromInt ( 80 ) , Path : " " , } , } , } , } , } , TerminationGracePeriodSeconds : & grace , } , } , } , } return rc }
newRCTemplate returns the default v1.ReplicationController object for
this j, but does not actually create the RC.
newRCTemplate returns the default v1 . ReplicationController object for this j but does not actually create the RC .
// so we don't race with kube-proxy when scaling up/down