Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Commit 6c127a6

Browse files
committed
Add missing serviceAccountName to parser job
1 parent f870064 commit 6c127a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

operator/controllers/scan_controller.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,8 @@ func (r *ScanReconciler) startParser(scan *scansv1.Scan) error {
298298
Spec: batch.JobSpec{
299299
Template: corev1.PodTemplateSpec{
300300
Spec: corev1.PodSpec{
301-
RestartPolicy: corev1.RestartPolicyNever,
301+
RestartPolicy: corev1.RestartPolicyNever,
302+
ServiceAccountName: "parser",
302303
Containers: []corev1.Container{
303304
{
304305
Name: "parser",

0 commit comments

Comments
 (0)