feat: Add Matomo Chart for analytics

Also adds the Digitalist Chart as Backup in case the
bitnami one stops working.
This commit is contained in:
2025-09-11 10:25:17 +02:00
parent e427af50ce
commit 8f46e45cfb
40 changed files with 3733 additions and 16 deletions
+4
View File
@@ -0,0 +1,4 @@
# Matomo
TO-DO:
- [ ] Move to Digitalist [Chart](https://github.com/Digitalist-Open-Cloud/matomo-kubernetes)
+3
View File
@@ -0,0 +1,3 @@
matomo:
enabled: {{ if eq .Environment.Name "prod" }} true {{ else }} false {{ end }}
env: prod
+4
View File
@@ -0,0 +1,4 @@
matomo:
enabled: false
autosync: {{ if eq .Environment.Name "prod" }} false {{ else }} true {{ end }}
env: {{ .Environment.Name }}
+42
View File
@@ -0,0 +1,42 @@
{{- if .Values.clusterConfig.argo.enabled }}
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: matomo
namespace: argocd
annotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
namespace: analytics
server: https://kubernetes.default.svc
project: aux
sources:
- repoURL: {{ .Values.clusterConfig.manifests }}
targetRevision: HEAD
path: helmfile.d
plugin:
name: helmfile-cmp
env:
- name: CLUSTER_NAME
value: {{ .Values.clusterConfig.cluster }}
- name: HELMFILE_ENVIRONMENT
value: {{ .Values.matomo.env }}
- name: HELMFILE_FILE_PATH
value: analytics.yaml.gotmpl
syncPolicy:
managedNamespaceMetadata:
labels:
component: aux
syncOptions:
- CreateNamespace=true
- ApplyOutOfSyncOnly=true
# - ServerSideApply=true
{{- if .Values.matomo.autosync }}
automated:
prune: true
# selfHeal: false
{{- end }}
{{- end }}
File diff suppressed because it is too large Load Diff