fix: allow multiple snapshotgroups per cluster

This commit is contained in:
Stefan Reimer 2021-09-01 13:42:36 +02:00
parent 33e556002c
commit a4329a1937
2 changed files with 5 additions and 5 deletions

View File

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

View File

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