Procházet zdrojové kódy

Add Redis data retention policy config options (#9080)

### What problem does this PR solve?

Adds configuration options to the RAGFlow Helm chart to set the Redis
data retention policies. By default this feature is disabled to maintain
support with older Kubernetes versions.

https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention

### Type of change

- [X] New Feature (non-breaking change which adds functionality)
tags/v0.20.0
Scott Davidson před 3 měsíci
rodič
revize
e26f37351d
Žádný účet není propojen s e-mailovou adresou tvůrce revize
2 změnil soubory, kde provedl 14 přidání a 0 odebrání
  1. 9
    0
      helm/templates/redis.yaml
  2. 5
    0
      helm/values.yaml

+ 9
- 0
helm/templates/redis.yaml Zobrazit soubor

{{- . | toYaml | nindent 12 }} {{- . | toYaml | nindent 12 }}
{{- end }} {{- end }}
{{- if .Values.redis.persistence.enabled }} {{- if .Values.redis.persistence.enabled }}
{{- with .Values.redis.persistence.retentionPolicy }}
persistentVolumeClaimRetentionPolicy:
{{- with .whenDeleted }}
whenDeleted: {{ . }}
{{- end }}
{{- with .whenScaled }}
whenScaled: {{ . }}
{{- end }}
{{- end }}
volumeClaimTemplates: volumeClaimTemplates:
- metadata: - metadata:
name: redis-data name: redis-data

+ 5
- 0
helm/values.yaml Zobrazit soubor

capacity: 5Gi capacity: 5Gi
persistence: persistence:
enabled: true enabled: true
# Set's the retention policy for the persistent storage (only available in k8s 1.32 or later)
# https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
# retentionPolicy:
# whenDeleted: Delete
# whenScaled: Delete
deployment: deployment:
strategy: strategy:
resources: resources:

Načítá se…
Zrušit
Uložit