Change JobSink execution mode variable to K_EXECUTION_MODE
#6938
Annotations
2 errors and 1 warning
Verify goimports:
pkg/apis/sinks/v1alpha1/job_sink_defaults_test.go#L1
Please run goimports.
diff --git a/pkg/apis/sinks/v1alpha1/job_sink_defaults_test.go b/pkg/apis/sinks/v1alpha1/job_sink_defaults_test.go
index a3ed1ed..8427e95 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: "K_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: "K_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: "K_EXECUTION_MODE", Value: "batch"},
},
},
{
- Name: "cnt-ini2",
- Image: "img-ini2",
+ Name: "cnt-ini2",
+ Image: "img-ini2",
Env: []corev1.EnvVar{
{Name: "K_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: "K_EXECUTION_MODE", Value: "batch"},
},
},
{
- Name: "cnt2",
- Image: "img2",
+ Name: "cnt2",
+ Image: "img2",
Env: []corev1.EnvVar{
{Name: "K_EXECUTION_MODE", Value: "batch"},
},
},
{
- Name: "cnt3",
- Image: "img3",
+ Name: "cnt3",
+ Image: "img3",
Env: []corev1.EnvVar{
{Name: "K_EXECUTION_MODE", Value: "something"},
},
|
Verify goimports
Process completed with exit code 1.
|
Set up Go
Restore cache failed: Dependencies file is not found in /home/runner/work/eventing/eventing. Supported file pattern: go.sum
|
Loading