Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolay Demchuk <[email protected]>
  • Loading branch information
NikolayDemchuk committed Nov 26, 2024
1 parent d07c2d2 commit edb9a6d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
20 changes: 18 additions & 2 deletions openapi/config-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ properties:
If parameter is omitted, Linstor nodes will be placed on all nodes.
**Caution!** Changing this parameter does not result in data redistribution. If node with data no longer matches the `nodeSelector`, data on that node will become inaccessible.
backup:
backup_daily:
type: object
description: Module backup settings
properties:
Expand All @@ -60,9 +60,25 @@ properties:
description: Module backup state
retentionCount:
type: integer
default: 3
default: 7
description: Number of backups to keep
schedule:
type: string
default: "0 3 * * *"
description: Backup schedule
backup_weekly:
type: object
description: Module backup settings
properties:
enabled:
type: boolean
default: true
description: Module backup state
retentionCount:
type: integer
default: 4
description: Number of backups to keep
schedule:
type: string
default: "0 4 * * 2,4"
description: Backup schedule
2 changes: 1 addition & 1 deletion templates/metadata-backup/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ metadata:
name: metadata-scheduled-backup-daily
namespace: d8-{{ .Chart.Name }}
spec:
schedule: {{ dig "backup" "schedule" "5 * * * *" .Values.sdsReplicatedVolume }}
schedule: {{ dig "backup" "schedule" "0 3 * * *" .Values.sdsReplicatedVolume }}
concurrencyPolicy: Forbid
failedJobsHistoryLimit: 1
jobTemplate:
Expand Down
2 changes: 1 addition & 1 deletion templates/metadata-backup/job_weekly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ metadata:
name: metadata-scheduled-backup-weekly
namespace: d8-{{ .Chart.Name }}
spec:
schedule: {{ dig "backup" "schedule" "0 * * * 2,4" .Values.sdsReplicatedVolume }}
schedule: {{ dig "backup_weekly" "schedule" "0 4 * * 2,4" .Values.sdsReplicatedVolume }}
concurrencyPolicy: Forbid
failedJobsHistoryLimit: 1
jobTemplate:
Expand Down

0 comments on commit edb9a6d

Please sign in to comment.