Skip to content

Commit e4eb9e6

Browse files
authored
Merge pull request #6 from vshn/backup/retention
Add maxRetention field for mariadb backups
2 parents eff3438 + c748379 commit e4eb9e6

File tree

6 files changed

+8
-4
lines changed

6 files changed

+8
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ helm repo add appcat https://charts.appcat.ch
1515

1616
| Downloads & Changelog | Chart |
1717
| --- | --- |
18-
| [![chart downloads](https://img.shields.io/github/downloads/vshn/appcat-charts/vshnmariadb-0.0.5/total)](https://github.com/vshn/appcat-charts/releases/tag/vshnmariadb-0.0.5) | [vshnmariadb](charts/vshnmariadb/README.md) |
18+
| [![chart downloads](https://img.shields.io/github/downloads/vshn/appcat-charts/vshnmariadb-0.0.6/total)](https://github.com/vshn/appcat-charts/releases/tag/vshnmariadb-0.0.6) | [vshnmariadb](charts/vshnmariadb/README.md) |
1919

2020
## Add / Update Charts
2121

charts/vshnmariadb/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apiVersion: v1
2-
appVersion: 0.0.5
2+
appVersion: 0.0.6
33
description: A Helm chart for MariaDB instances using the mariadb-operator
44
name: vshnmariadb
5-
version: 0.0.5
5+
version: 0.0.6
66
maintainers:
77
- name: Schedar Team
88
email: info@vshn.ch

charts/vshnmariadb/README.gotmpl.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Only MariaDB official images are supported. |
4444
| Parameter | Description | Default
4545
| --- | --- | ---
4646
| `backup.enabled` | Enabled is a flag to enable backups | false
47+
| `backup.maxRention` | Max retention for the backups in hours | 720h # 30 days
4748
| `backup.s3.bucket` | Name of the s3 bucket for the backups |
4849
| `backup.s3.endpoint` | Name of the s3 endpoint for the backups |
4950
| `backup.s3.accessKey` | Access key for the s3 bucket |

charts/vshnmariadb/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# vshnmariadb
22

3-
![Version: 0.0.5](https://img.shields.io/badge/Version-0.0.5-informational?style=flat-square) ![AppVersion: 0.0.5](https://img.shields.io/badge/AppVersion-0.0.5-informational?style=flat-square)
3+
![Version: 0.0.6](https://img.shields.io/badge/Version-0.0.6-informational?style=flat-square) ![AppVersion: 0.0.6](https://img.shields.io/badge/AppVersion-0.0.6-informational?style=flat-square)
44

55
A Helm chart for MariaDB instances using the mariadb-operator
66

@@ -56,6 +56,7 @@ Only MariaDB official images are supported. |
5656
| Parameter | Description | Default
5757
| --- | --- | ---
5858
| `backup.enabled` | Enabled is a flag to enable backups | false
59+
| `backup.maxRention` | Max retention for the backups in hours | 720h # 30 days
5960
| `backup.s3.bucket` | Name of the s3 bucket for the backups |
6061
| `backup.s3.endpoint` | Name of the s3 endpoint for the backups |
6162
| `backup.s3.accessKey` | Access key for the s3 bucket |

charts/vshnmariadb/templates/backup.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ metadata:
1111
spec:
1212
mariaDbRef:
1313
name: {{ include "mariadb.fullname" . }}
14+
maxRetention: {{ .Values.backup.maxRetention }}
1415
schedule:
1516
{{/* Generate uniform random minute (0–59) */}}
1617
{{- $minute := (randNumeric 2 | atoi) -}}

charts/vshnmariadb/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ metrics:
2323

2424
backup:
2525
enabled: false
26+
maxRetention: 720h # 30 days

0 commit comments

Comments
 (0)