diff --git a/pkg/apis/sinks/v1alpha1/job_sink_defaults_test.go b/pkg/apis/sinks/v1alpha1/job_sink_defaults_test.go index 766ab45b0d6..a3ed1ed76ed 100644 --- a/pkg/apis/sinks/v1alpha1/job_sink_defaults_test.go +++ b/pkg/apis/sinks/v1alpha1/job_sink_defaults_test.go @@ -50,7 +50,7 @@ func TestSetDefaults(t *testing.T) { Name: "cnt3", Image: "img3", Env: []corev1.EnvVar{ - {Name: "KNATIVE_EXECUTION_MODE", Value: "something"}, + {Name: "K_EXECUTION_MODE", Value: "something"}, }, }, }, @@ -63,7 +63,7 @@ func TestSetDefaults(t *testing.T) { Name: "cnt-ini2", Image: "img-ini2", Env: []corev1.EnvVar{ - {Name: "KNATIVE_EXECUTION_MODE", Value: "something"}, + {Name: "K_EXECUTION_MODE", Value: "something"}, }, }, }, @@ -84,14 +84,14 @@ func TestSetDefaults(t *testing.T) { Name: "cnt", Image: "img", Env: []corev1.EnvVar{ - {Name: "KNATIVE_EXECUTION_MODE", Value: "batch"}, + {Name: "K_EXECUTION_MODE", Value: "batch"}, }, }, { Name: "cnt-ini2", Image: "img-ini2", Env: []corev1.EnvVar{ - {Name: "KNATIVE_EXECUTION_MODE", Value: "something"}, + {Name: "K_EXECUTION_MODE", Value: "something"}, }, }, }, @@ -100,21 +100,21 @@ func TestSetDefaults(t *testing.T) { Name: "cnt", Image: "img", Env: []corev1.EnvVar{ - {Name: "KNATIVE_EXECUTION_MODE", Value: "batch"}, + {Name: "K_EXECUTION_MODE", Value: "batch"}, }, }, { Name: "cnt2", Image: "img2", Env: []corev1.EnvVar{ - {Name: "KNATIVE_EXECUTION_MODE", Value: "batch"}, + {Name: "K_EXECUTION_MODE", Value: "batch"}, }, }, { Name: "cnt3", Image: "img3", Env: []corev1.EnvVar{ - {Name: "KNATIVE_EXECUTION_MODE", Value: "something"}, + {Name: "K_EXECUTION_MODE", Value: "something"}, }, }, }, diff --git a/pkg/reconciler/jobsink/jobsink_test.go b/pkg/reconciler/jobsink/jobsink_test.go index 5ee0d119f65..f44acba7bb8 100644 --- a/pkg/reconciler/jobsink/jobsink_test.go +++ b/pkg/reconciler/jobsink/jobsink_test.go @@ -264,7 +264,7 @@ func testJob(name string) *batchv1.Job { { Name: "test-container", Env: []corev1.EnvVar{ - {Name: "KNATIVE_EXECUTION_MODE", Value: "batch"}, + {Name: "K_EXECUTION_MODE", Value: "batch"}, }, }, },