File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import (
1515func TestNewStarterJob (t * testing.T ) {
1616
1717 automountServiceAccountToken := true
18+ zero := int32 (0 )
1819
1920 expectedOutcome := & batchv1.Job {
2021 ObjectMeta : metav1.ObjectMeta {
@@ -30,6 +31,7 @@ func TestNewStarterJob(t *testing.T) {
3031 },
3132 },
3233 Spec : batchv1.JobSpec {
34+ BackoffLimit : & zero ,
3335 Template : corev1.PodTemplateSpec {
3436 ObjectMeta : metav1.ObjectMeta {
3537 Labels : map [string ]string {
@@ -106,6 +108,7 @@ func TestNewStarterJob(t *testing.T) {
106108func TestNewStarterJobIstio (t * testing.T ) {
107109
108110 automountServiceAccountToken := true
111+ zero := int32 (0 )
109112
110113 expectedOutcome := & batchv1.Job {
111114 ObjectMeta : metav1.ObjectMeta {
@@ -121,6 +124,7 @@ func TestNewStarterJobIstio(t *testing.T) {
121124 },
122125 },
123126 Spec : batchv1.JobSpec {
127+ BackoffLimit : & zero ,
124128 Template : corev1.PodTemplateSpec {
125129 ObjectMeta : metav1.ObjectMeta {
126130 Labels : map [string ]string {
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import (
1313
1414func TestNewStopperJob (t * testing.T ) {
1515 automountServiceAccountToken := true
16+ zero := int32 (0 )
1617
1718 expectedOutcome := & batchv1.Job {
1819 ObjectMeta : metav1.ObjectMeta {
@@ -28,6 +29,7 @@ func TestNewStopperJob(t *testing.T) {
2829 },
2930 },
3031 Spec : batchv1.JobSpec {
32+ BackoffLimit : & zero ,
3133 Template : corev1.PodTemplateSpec {
3234 ObjectMeta : metav1.ObjectMeta {
3335 Labels : map [string ]string {
@@ -93,6 +95,7 @@ func TestNewStopperJob(t *testing.T) {
9395
9496func TestNewStopJobIstio (t * testing.T ) {
9597 automountServiceAccountToken := true
98+ zero := int32 (0 )
9699
97100 expectedOutcome := & batchv1.Job {
98101 ObjectMeta : metav1.ObjectMeta {
@@ -108,6 +111,7 @@ func TestNewStopJobIstio(t *testing.T) {
108111 },
109112 },
110113 Spec : batchv1.JobSpec {
114+ BackoffLimit : & zero ,
111115 Template : corev1.PodTemplateSpec {
112116 ObjectMeta : metav1.ObjectMeta {
113117 Labels : map [string ]string {
You can’t perform that action at this time.
0 commit comments