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

Commit 31c69c4

Browse files
committed
Fix typo
1 parent 03f2a1b commit 31c69c4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

operator/controllers/execution/scan_controller.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,16 +133,16 @@ const (
133133
completed jobCompletionType = "Completed"
134134
failed jobCompletionType = "Failed"
135135
incomplete jobCompletionType = "Incomplete"
136-
unkown jobCompletionType = "Unkown"
136+
unknown jobCompletionType = "Unknown"
137137
)
138138

139139
func (r *ScanReconciler) checkIfJobIsCompleted(name, namespace string) (jobCompletionType, error) {
140140
job, err := r.getJob(name, namespace)
141141
if err != nil {
142-
return unkown, err
142+
return unknown, err
143143
}
144144
if job == nil {
145-
return unkown, errors.New("Both Job and error were nil. This isn't really expected")
145+
return unknown, errors.New("Both Job and error were nil. This isn't really expected")
146146
}
147147

148148
if job.Status.Succeeded != 0 {
@@ -151,7 +151,7 @@ func (r *ScanReconciler) checkIfJobIsCompleted(name, namespace string) (jobCompl
151151
if job.Status.Failed != 0 {
152152
return failed, nil
153153
}
154-
return unkown, nil
154+
return unknown, nil
155155
}
156156

157157
func (r *ScanReconciler) startScan(scan *executionv1.Scan) error {
@@ -356,7 +356,7 @@ func (r *ScanReconciler) startParser(scan *executionv1.Scan) error {
356356
rawResultDownloadURL,
357357
findingsUploadURL.String(),
358358
},
359-
ImagePullPolicy: "IfNotPresent",
359+
ImagePullPolicy: "Always",
360360
},
361361
},
362362
AutomountServiceAccountToken: &automountServiceAccountToken,

0 commit comments

Comments
 (0)