Add missing ImagePullPolicy to the newly created jobs.

This commit is contained in:
2024-01-02 10:04:22 +00:00
parent 925f8a1592
commit c604c16aa0
2 changed files with 5 additions and 2 deletions
+2 -2
View File
@@ -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
+3
View File
@@ -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 {