Skip to content

Commit

Permalink
chore(operator): explicitly define ImagePullPolicy of Job container t…
Browse files Browse the repository at this point in the history
…o IfNotPresent

Signed-off-by: odubajDT <[email protected]>
  • Loading branch information
odubajDT committed Jun 1, 2023
1 parent 9eafb78 commit 29b3f6b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions operator/controllers/lifecycle/keptntask/js_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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: corev1.PullIfNotPresent,
}

var envVars []corev1.EnvVar
Expand Down

0 comments on commit 29b3f6b

Please sign in to comment.