From f35b4602ec8ca648c62cb6ef4afbd32809e4e929 Mon Sep 17 00:00:00 2001 From: Rub21 Date: Wed, 1 Nov 2023 16:29:46 +0800 Subject: [PATCH] Update bakup db template --- osm-seed/templates/db/db-backup-job.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/osm-seed/templates/db/db-backup-job.yaml b/osm-seed/templates/db/db-backup-job.yaml index 37f15164..86c6a191 100644 --- a/osm-seed/templates/db/db-backup-job.yaml +++ b/osm-seed/templates/db/db-backup-job.yaml @@ -1,13 +1,11 @@ {{- range $i, $job := .Values.dbBackupRestore.cronjobs }} {{- if $job.enabled -}} ---- apiVersion: batch/v1 kind: CronJob metadata: name: {{ $.Release.Name }}-{{ $job.name }}-backup-job labels: component: {{ $job.name }}-job - component: db-pd environment: {{ $.Values.environment }} release: {{ $.Release.Name }} spec: @@ -98,5 +96,6 @@ spec: cpu: {{ $job.resources.limits.cpu }} {{- end }} restartPolicy: OnFailure +--- {{- end }} {{- end }}