From c604c16aa058b44195b265a72fa80a1df92dbf67 Mon Sep 17 00:00:00 2001 From: Lukasz Raczylo Date: Tue, 2 Jan 2024 10:04:22 +0000 Subject: [PATCH] Add missing ImagePullPolicy to the newly created jobs. --- charts/jobs-manager-operator/Chart.yaml | 4 ++-- controllers/crd_scrapper.go | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/charts/jobs-manager-operator/Chart.yaml b/charts/jobs-manager-operator/Chart.yaml index cd4c2f9..c1ec2a7 100644 --- a/charts/jobs-manager-operator/Chart.yaml +++ b/charts/jobs-manager-operator/Chart.yaml @@ -13,12 +13,12 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.0.24 +version: 0.0.30 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "0.0.24" +appVersion: "0.0.30" keywords: - operator - jobs diff --git a/controllers/crd_scrapper.go b/controllers/crd_scrapper.go index af62a26..eb0367d 100644 --- a/controllers/crd_scrapper.go +++ b/controllers/crd_scrapper.go @@ -52,6 +52,9 @@ func (cp *connPackage) compileParameters(params ...jobsmanagerv1beta1.ManagedJob if params.ImagePullSecrets != nil { cparams.ImagePullSecrets = append(cparams.ImagePullSecrets, params.ImagePullSecrets...) } + if params.ImagePullPolicy != "" { + cparams.ImagePullPolicy = params.ImagePullPolicy + } if params.Labels != nil { cparams.Labels = make(map[string]string) for k, v := range params.Labels {