mariadb: 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: I217422e9e9c30d6a93d8e6aa4501a19e9c74c9f6
This commit is contained in:
Phil Sphicas 2020-03-16 18:12:09 -07:00
parent f26b203637
commit df920e7a47

View File

@ -26,6 +26,8 @@ metadata:
name: mariadb-backup
annotations:
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }}
labels:
{{ tuple $envAll "mariadb-backup" "backup" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
spec:
schedule: {{ .Values.jobs.backup_mariadb.cron | quote }}
successfulJobsHistoryLimit: {{ .Values.jobs.backup_mariadb.history.success }}