From 3860dedef387e910d2628a725699a00443144f66 Mon Sep 17 00:00:00 2001 From: Phil Sphicas Date: Mon, 16 Mar 2020 18:05:33 -0700 Subject: [PATCH] postgresql: Add metadata labels to CronJob This change adds the same helm-toolkit-generated metadata labels to the CronJob itself that are applied to the Jobs it creates. Change-Id: I888ca6f25c97e3deb6710e2e6be5a87a6133604b --- postgresql/templates/cron-job-backup-postgres.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/postgresql/templates/cron-job-backup-postgres.yaml b/postgresql/templates/cron-job-backup-postgres.yaml index 926d78358..e69afd9c8 100644 --- a/postgresql/templates/cron-job-backup-postgres.yaml +++ b/postgresql/templates/cron-job-backup-postgres.yaml @@ -26,6 +26,8 @@ metadata: name: postgresql-backup annotations: {{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }} + labels: +{{ tuple $envAll "postgresql-backup" "backup" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }} spec: schedule: {{ .Values.jobs.backup_postgresql.cron | quote }} successfulJobsHistoryLimit: {{ .Values.jobs.backup_postgresql.history.success }}