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 # 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. # to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/) # 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 # 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 # 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. # follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes. # It is recommended to use it with quotes.
appVersion: "0.0.24" appVersion: "0.0.30"
keywords: keywords:
- operator - operator
- jobs - jobs
+3
View File
@@ -52,6 +52,9 @@ func (cp *connPackage) compileParameters(params ...jobsmanagerv1beta1.ManagedJob
if params.ImagePullSecrets != nil { if params.ImagePullSecrets != nil {
cparams.ImagePullSecrets = append(cparams.ImagePullSecrets, params.ImagePullSecrets...) cparams.ImagePullSecrets = append(cparams.ImagePullSecrets, params.ImagePullSecrets...)
} }
if params.ImagePullPolicy != "" {
cparams.ImagePullPolicy = params.ImagePullPolicy
}
if params.Labels != nil { if params.Labels != nil {
cparams.Labels = make(map[string]string) cparams.Labels = make(map[string]string)
for k, v := range params.Labels { for k, v := range params.Labels {