From bcfa3583e5c8eaa6b9e867de97f48746468719d2 Mon Sep 17 00:00:00 2001 From: Stavros kois Date: Thu, 19 Jan 2023 16:59:27 +0200 Subject: [PATCH] commit job file --- library/common/1.0.0/templates/class/_job.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }}