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

View File

@ -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 }}

View File

@ -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 }}