diff --git a/library/common/1.0.0/templates/class/_job.tpl b/library/common/1.0.0/templates/class/_job.tpl index 8b06bb5995..9b413960b3 100644 --- a/library/common/1.0.0/templates/class/_job.tpl +++ b/library/common/1.0.0/templates/class/_job.tpl @@ -8,12 +8,12 @@ apiVersion: {{ include "ix.v1.common.capabilities.job.apiVersion" . }} kind: Job metadata: name: {{ $jobName }} - {{- $labels := (mustMerge ($job.labels | default dict) (include "ix.v1.common.labels" $root | fromYaml)) -}} + {{- $labels := (mustMerge ($job.labels | default dict) (include "ix.v1.common.labels" $root | fromYaml) (include "ix.v1.common.podLabels" $root | fromYaml)) -}} {{- with (include "ix.v1.common.util.labels.render" (dict "root" $root "labels" $labels) | trim) }} labels: {{- . | nindent 4 }} {{- end }} - {{- $annotations := (mustMerge ($job.annotations | default dict) (include "ix.v1.common.annotations" $root | fromYaml)) -}} + {{- $annotations := (mustMerge ($job.annotations | default dict) (include "ix.v1.common.annotations" $root | fromYaml) (include "ix.v1.common.podAnnotations" $root | fromYaml) (include "ix.v1.common.annotations.workload.spec" $root | fromYaml)) -}} {{- with (include "ix.v1.common.util.annotations.render" (dict "root" $root "annotations" $annotations) | trim) }} annotations: {{- . | nindent 4 }}