Files
helm-charts/k3s-tooling/templates/cnpg.yaml

29 lines
988 B
YAML

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