From a29fa11230422de086480050c4ed046160febe8a Mon Sep 17 00:00:00 2001 From: locoe Date: Wed, 4 Dec 2024 16:07:38 -0500 Subject: [PATCH] US-648252 added job labels to the installer template --- charts/pega/charts/installer/templates/_helpers.tpl | 3 +++ charts/pega/charts/installer/templates/_pega-installer-job.tpl | 1 + 2 files changed, 4 insertions(+) diff --git a/charts/pega/charts/installer/templates/_helpers.tpl b/charts/pega/charts/installer/templates/_helpers.tpl index ca7a6926b..2765e4c17 100644 --- a/charts/pega/charts/installer/templates/_helpers.tpl +++ b/charts/pega/charts/installer/templates/_helpers.tpl @@ -204,6 +204,9 @@ currentFunctionPath=SYSIBM,SYSFUN,{{ include "resolvedDataSchema" . | upper }} {{- define "generatedInstallerPodLabels" }} {{- end }} +# Override this template to generate additional job labels that are dynamically composed during helm deployment (do not indent labels) +{{- define "generatedInstallerJobLabels" }} +{{- end }} # Compose REST Service URL for pre- and post- upgrade ZDT tasks {{- define "pegaRestURL" }} diff --git a/charts/pega/charts/installer/templates/_pega-installer-job.tpl b/charts/pega/charts/installer/templates/_pega-installer-job.tpl index 5130d667e..f2efb9808 100644 --- a/charts/pega/charts/installer/templates/_pega-installer-job.tpl +++ b/charts/pega/charts/installer/templates/_pega-installer-job.tpl @@ -23,6 +23,7 @@ metadata: {{- end }}{{- end }} labels: app: {{ .name }} + {{ include "generatedInstallerJobLabels" .root | indent 4 }} spec: backoffLimit: 0 template: