feat: add snapshotgroup support to redis

This commit is contained in:
Stefan Reimer 2021-09-01 13:30:20 +02:00
parent e9d451c91c
commit 3ff26d4098
3 changed files with 22 additions and 1 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v2
name: kubezero-redis
description: KubeZero Umbrella Chart for Redis HA
type: application
version: 0.3.1
version: 0.3.2
home: https://kubezero.com
icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png
keywords:

View File

@ -0,0 +1,12 @@
{{- range .Values.snapshotgroups }}
apiVersion: gemini.fairwinds.com/v1beta1
kind: SnapshotGroup
metadata:
name: {{ .name }}
namespace: {{ $.Release.Namespace }}
spec:
persistentVolumeClaim:
claimName: {{ .claimName }}
schedule:
{{- toYaml .schedule | nindent 4 }}
{{- end }}

View File

@ -42,3 +42,12 @@ redis-cluster:
istio:
enabled: false
snapshotgroups: {}
# - name: redis-snaps
# claimName: redis-data-redis-cluster-master-0
# schedule:
# - every: hour
# keep: 24
# - every: day
# keep: 7