25 lines
830 B
YAML
25 lines
830 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 }}
|