From e5e32cbadcfc1f9a096f91ad395acd790943c331 Mon Sep 17 00:00:00 2001 From: Phil Sphicas Date: Mon, 16 Mar 2020 18:15:54 -0700 Subject: [PATCH] elasticsearch: 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: I6a88bae2c4962d37fcc76ace2e32cd41163ffebe --- elasticsearch/templates/cron-job-curator.yaml | 2 ++ elasticsearch/templates/cron-job-verify-repositories.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/elasticsearch/templates/cron-job-curator.yaml b/elasticsearch/templates/cron-job-curator.yaml index 7a6a4d57d6..221006f76f 100644 --- a/elasticsearch/templates/cron-job-curator.yaml +++ b/elasticsearch/templates/cron-job-curator.yaml @@ -28,6 +28,8 @@ metadata: name: elastic-curator annotations: {{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }} + labels: +{{ tuple $envAll "elasticsearch" "curator" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }} spec: schedule: {{ .Values.jobs.curator.cron | quote }} successfulJobsHistoryLimit: {{ .Values.jobs.curator.history.success }} diff --git a/elasticsearch/templates/cron-job-verify-repositories.yaml b/elasticsearch/templates/cron-job-verify-repositories.yaml index a1b8a9731c..3548ccf28f 100644 --- a/elasticsearch/templates/cron-job-verify-repositories.yaml +++ b/elasticsearch/templates/cron-job-verify-repositories.yaml @@ -28,6 +28,8 @@ metadata: name: elasticsearch-verify-repositories annotations: {{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }} + labels: +{{ tuple $envAll "elasticsearch" "verify-repositories" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }} spec: schedule: {{ .Values.jobs.verify_repositories.cron | quote }} successfulJobsHistoryLimit: {{ .Values.jobs.verify_repositories.history.success }}