diff --git a/pkg/apis/sinks/v1alpha1/job_sink_defaults_test.go b/pkg/apis/sinks/v1alpha1/job_sink_defaults_test.go index 766ab45b0d6..5f693c06bb0 100644 --- a/pkg/apis/sinks/v1alpha1/job_sink_defaults_test.go +++ b/pkg/apis/sinks/v1alpha1/job_sink_defaults_test.go @@ -34,21 +34,21 @@ func TestSetDefaults(t *testing.T) { initial: JobSink{ Spec: JobSinkSpec{ Job: &batchv1.Job{ - Spec: batchv1.JobSpec{ + Spec: batchv1.JobSpec{ Template: corev1.PodTemplateSpec{ - Spec: corev1.PodSpec{ + Spec: corev1.PodSpec{ Containers: []corev1.Container{ { - Name: "cnt", - Image: "img", + Name: "cnt", + Image: "img", }, { - Name: "cnt2", - Image: "img2", + Name: "cnt2", + Image: "img2", }, { - Name: "cnt3", - Image: "img3", + Name: "cnt3", + Image: "img3", Env: []corev1.EnvVar{ {Name: "KNATIVE_EXECUTION_MODE", Value: "something"}, }, @@ -56,12 +56,12 @@ func TestSetDefaults(t *testing.T) { }, InitContainers: []corev1.Container{ { - Name: "cnt", - Image: "img", + Name: "cnt", + Image: "img", }, { - Name: "cnt-ini2", - Image: "img-ini2", + Name: "cnt-ini2", + Image: "img-ini2", Env: []corev1.EnvVar{ {Name: "KNATIVE_EXECUTION_MODE", Value: "something"}, }, @@ -76,20 +76,20 @@ func TestSetDefaults(t *testing.T) { expected: JobSink{ Spec: JobSinkSpec{ Job: &batchv1.Job{ - Spec: batchv1.JobSpec{ + Spec: batchv1.JobSpec{ Template: corev1.PodTemplateSpec{ - Spec: corev1.PodSpec{ + Spec: corev1.PodSpec{ InitContainers: []corev1.Container{ { - Name: "cnt", - Image: "img", + Name: "cnt", + Image: "img", Env: []corev1.EnvVar{ {Name: "KNATIVE_EXECUTION_MODE", Value: "batch"}, }, }, { - Name: "cnt-ini2", - Image: "img-ini2", + Name: "cnt-ini2", + Image: "img-ini2", Env: []corev1.EnvVar{ {Name: "KNATIVE_EXECUTION_MODE", Value: "something"}, }, @@ -97,22 +97,22 @@ func TestSetDefaults(t *testing.T) { }, Containers: []corev1.Container{ { - Name: "cnt", - Image: "img", + Name: "cnt", + Image: "img", Env: []corev1.EnvVar{ {Name: "KNATIVE_EXECUTION_MODE", Value: "batch"}, }, }, { - Name: "cnt2", - Image: "img2", + Name: "cnt2", + Image: "img2", Env: []corev1.EnvVar{ {Name: "KNATIVE_EXECUTION_MODE", Value: "batch"}, }, }, { - Name: "cnt3", - Image: "img3", + Name: "cnt3", + Image: "img3", Env: []corev1.EnvVar{ {Name: "KNATIVE_EXECUTION_MODE", Value: "something"}, },