Skip to content

Commit 545cb3e

Browse files
committed
Change hook imagePullPolicy to always
This is more online with the parser and allows them to run in cluster with extremly high security requirements / or hard enforced multi tenancy. See: https://kubernetes.io/docs/concepts/containers/images/#use-cases
1 parent 760a745 commit 545cb3e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎operator/controllers/execution/scans/hook_reconciler.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ func (r *ScanReconciler) createJobForHook(hook *executionv1.ScanCompletionHook,
390390
Image: hook.Spec.Image,
391391
Args: cliArgs,
392392
Env: append(hook.Spec.Env, standardEnvVars...),
393-
ImagePullPolicy: "IfNotPresent",
393+
ImagePullPolicy: "Always",
394394
Resources: corev1.ResourceRequirements{
395395
Requests: corev1.ResourceList{
396396
corev1.ResourceCPU: resource.MustParse("200m"),

0 commit comments

Comments
 (0)