From 73eb649aa84764be7279e4be9154fcfabdc488c8 Mon Sep 17 00:00:00 2001 From: Phil Sphicas Date: Mon, 16 Mar 2020 18:14:20 -0700 Subject: [PATCH] ceph: 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: I236f0f42446d63887d2a6282fe7c2671bc23471f --- ceph-client/templates/cronjob-checkPGs.yaml | 2 ++ ceph-client/templates/cronjob-defragosds.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/ceph-client/templates/cronjob-checkPGs.yaml b/ceph-client/templates/cronjob-checkPGs.yaml index faac837e1..fbddf13ad 100644 --- a/ceph-client/templates/cronjob-checkPGs.yaml +++ b/ceph-client/templates/cronjob-checkPGs.yaml @@ -55,6 +55,8 @@ metadata: name: {{ $serviceAccountName }} annotations: {{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }} + labels: +{{ tuple $envAll "ceph" "pool-checkpgs" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }} spec: schedule: {{ .Values.jobs.pool_checkPGs.cron | quote }} successfulJobsHistoryLimit: {{ .Values.jobs.pool_checkPGs.history.successJob }} diff --git a/ceph-client/templates/cronjob-defragosds.yaml b/ceph-client/templates/cronjob-defragosds.yaml index 92659d29b..640b242e6 100644 --- a/ceph-client/templates/cronjob-defragosds.yaml +++ b/ceph-client/templates/cronjob-defragosds.yaml @@ -55,6 +55,8 @@ metadata: name: {{ $serviceAccountName }} annotations: {{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }} + labels: +{{ tuple $envAll "ceph" "ceph-defragosds" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }} spec: schedule: {{ .Values.jobs.ceph_defragosds.cron | quote }} successfulJobsHistoryLimit: {{ .Values.jobs.ceph_defragosds.history.successJob }}