Files
helm-charts/k3s-tooling/templates/longhorn.yaml
2024-11-04 23:59:00 +00:00

25 lines
826 B
YAML

{{- if .Values.longhorn.enable -}}
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: longhorn
namespace: {{ .Values.argocd.namespace }}
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: {{ .Values.argocd.project }}
source:
repoURL: "https://charts.longhorn.io" # Helm repository for Tailscale
chart: longhorn # Chart name
targetRevision: {{ .Values.longhorn.targetRevision }}
destination:
server: {{ .Values.longhorn.destination.server }}
namespace: {{ .Values.longhorn.destination.namespace }}
syncPolicy:
automated:
prune: true # Automatically remove resources no longer in the repo
selfHeal: true # Automatically self-heal when drift is detected
syncOptions:
- CreateNamespace=true
{{- end }}