Skip to content

Commit df5aa5a

Browse files
authored
fix: job generator missing pod restartPolicy issue (#658)
1 parent f4d08f2 commit df5aa5a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/modules/generators/workload/job_generator.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,9 @@ func (g *jobGenerator) Generate(spec *intent.Intent) error {
9898
),
9999
},
100100
Spec: corev1.PodSpec{
101-
Containers: containers,
102-
Volumes: volumes,
101+
Containers: containers,
102+
RestartPolicy: corev1.RestartPolicyNever,
103+
Volumes: volumes,
103104
},
104105
},
105106
}

0 commit comments

Comments
 (0)