From c09103eb5e476efcfc99fa0bde90ffc46027d3ee Mon Sep 17 00:00:00 2001 From: Jeremy Ho Date: Thu, 3 Dec 2020 16:39:44 -0800 Subject: [PATCH] Add missing labels to job container template - These labels will be useful for NSP selection Signed-off-by: Jeremy Ho --- openshift/templates/backup/backup-cronjob.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openshift/templates/backup/backup-cronjob.yaml b/openshift/templates/backup/backup-cronjob.yaml index 006f77a..8718fc0 100644 --- a/openshift/templates/backup/backup-cronjob.yaml +++ b/openshift/templates/backup/backup-cronjob.yaml @@ -160,6 +160,10 @@ objects: spec: backoffLimit: ${JOB_BACKOFF_LIMIT} template: + metadata: + labels: + template: "${JOB_NAME}-job" + cronjob: "${JOB_NAME}" spec: containers: - name: "${JOB_NAME}-cronjob"