From 7efea7a406b4fe13f8ea2ae8963fd8eeea79667a Mon Sep 17 00:00:00 2001 From: odubajDT Date: Thu, 1 Jun 2023 14:30:19 +0200 Subject: [PATCH] chore(operator): explicitly define ImagePullPolicy of Job container to IfNotPresent Signed-off-by: odubajDT --- operator/controllers/lifecycle/keptntask/js_builder.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/operator/controllers/lifecycle/keptntask/js_builder.go b/operator/controllers/lifecycle/keptntask/js_builder.go index b6fb1083e83..063cb4e7aca 100644 --- a/operator/controllers/lifecycle/keptntask/js_builder.go +++ b/operator/controllers/lifecycle/keptntask/js_builder.go @@ -36,8 +36,9 @@ type FunctionExecutionParams struct { func (js *JSBuilder) CreateContainerWithVolumes(ctx context.Context) (*corev1.Container, []corev1.Volume, error) { container := corev1.Container{ - Name: "keptn-function-runner", - Image: os.Getenv("FUNCTION_RUNNER_IMAGE"), + Name: "keptn-function-runner", + Image: os.Getenv("FUNCTION_RUNNER_IMAGE"), + ImagePullPolicy: "IfNotPresent", } var envVars []corev1.EnvVar