Fix issue with the annotations and labels.

This commit is contained in:
2023-03-16 13:54:04 +00:00
parent bded5b0250
commit 10648997ad
8 changed files with 37 additions and 27 deletions
+2
View File
@@ -53,11 +53,13 @@ func (cp *connPackage) compileParameters(params ...jobsmanagerv1beta1.ManagedJob
cparams.ImagePullSecrets = append(cparams.ImagePullSecrets, params.ImagePullSecrets...)
}
if params.Labels != nil {
cparams.Labels = make(map[string]string)
for k, v := range params.Labels {
cparams.Labels[k] = v
}
}
if params.Annotations != nil {
cparams.Annotations = make(map[string]string)
for k, v := range params.Annotations {
cparams.Annotations[k] = v
}