From d6bb33ef4b4b8698d2c385c33de646ba27005d19 Mon Sep 17 00:00:00 2001 From: Knative Automation Date: Tue, 26 Nov 2024 13:11:11 +0000 Subject: [PATCH] Format go code Signed-off-by: Knative Automation --- .../sinks/v1alpha1/job_sink_defaults_test.go | 48 +++++++++---------- 1 file changed, 24 insertions(+), 24 deletions(-) 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"}, },