MetaTrader5-Docker-Image/charts/mt5/templates/pvc.yaml
Bast fb1a3d8581
Some checks failed
MT5 Helm GitOps Deploy / build-and-deploy (push) Failing after 4s
first commit
2026-11-03 13:51:32 -06:00

20 lines
621 B
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ include "mt5.claimName" . }}
labels:
{{- include "mt5.labels" . | nindent 4 }}
annotations:
# PVC bei helm uninstall behalten – sonst ist Wine-Prefix + Login weg
helm.sh/resource-policy: keep
spec:
accessModes:
- {{ .Values.persistence.accessMode }}
{{- if .Values.persistence.storageClass }}
storageClassName: {{ .Values.persistence.storageClass }}
{{- end }}
resources:
requests:
storage: {{ .Values.persistence.size }}
{{- end }}