From 44175bba47a2f367808a9f0c549422dca671b897 Mon Sep 17 00:00:00 2001 From: Phil Sphicas Date: Mon, 16 Mar 2020 18:16:52 -0700 Subject: [PATCH] gnocchi: 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: I59982558c4a29c6611a28191206b1c8400b6a8c9 --- gnocchi/templates/cron-job-resources-cleaner.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gnocchi/templates/cron-job-resources-cleaner.yaml b/gnocchi/templates/cron-job-resources-cleaner.yaml index cffc1f0bd..26bf74ddf 100644 --- a/gnocchi/templates/cron-job-resources-cleaner.yaml +++ b/gnocchi/templates/cron-job-resources-cleaner.yaml @@ -29,6 +29,8 @@ metadata: name: gnocchi-resources-cleaner annotations: {{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }} + labels: +{{ tuple $envAll "gnocchi" "resources-cleaner" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }} spec: schedule: {{ .Values.jobs.resources_cleaner.cron | quote }} successfulJobsHistoryLimit: {{ .Values.jobs.resources_cleaner.history.success }}