Skip to content

Commit

Permalink
Update bakup db template
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Nov 1, 2023
1 parent d606229 commit f35b460
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions osm-seed/templates/db/db-backup-job.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -98,5 +96,6 @@ spec:
cpu: {{ $job.resources.limits.cpu }}
{{- end }}
restartPolicy: OnFailure
---
{{- end }}
{{- end }}

0 comments on commit f35b460

Please sign in to comment.