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
This commit is contained in:
Phil Sphicas 2020-03-16 18:14:20 -07:00
parent f26b203637
commit 73eb649aa8
2 changed files with 4 additions and 0 deletions

View File

@ -55,6 +55,8 @@ metadata:
name: {{ $serviceAccountName }} name: {{ $serviceAccountName }}
annotations: annotations:
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }} {{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }}
labels:
{{ tuple $envAll "ceph" "pool-checkpgs" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
spec: spec:
schedule: {{ .Values.jobs.pool_checkPGs.cron | quote }} schedule: {{ .Values.jobs.pool_checkPGs.cron | quote }}
successfulJobsHistoryLimit: {{ .Values.jobs.pool_checkPGs.history.successJob }} successfulJobsHistoryLimit: {{ .Values.jobs.pool_checkPGs.history.successJob }}

View File

@ -55,6 +55,8 @@ metadata:
name: {{ $serviceAccountName }} name: {{ $serviceAccountName }}
annotations: annotations:
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }} {{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }}
labels:
{{ tuple $envAll "ceph" "ceph-defragosds" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
spec: spec:
schedule: {{ .Values.jobs.ceph_defragosds.cron | quote }} schedule: {{ .Values.jobs.ceph_defragosds.cron | quote }}
successfulJobsHistoryLimit: {{ .Values.jobs.ceph_defragosds.history.successJob }} successfulJobsHistoryLimit: {{ .Values.jobs.ceph_defragosds.history.successJob }}