Files
gitops/apps/openproject-app.yaml
2026-01-20 17:15:29 +01:00

36 lines
1.4 KiB
YAML

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: openproject # <--- Name der App in ArgoCD UI
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "5"
spec:
project: default
source:
repoURL: https://git.cloud-infra.prod.openmailserver.de/stabify/gitops.git
targetRevision: HEAD
path: apps/openproject # <--- WICHTIG: Hier muss dein Wrapper-Chart liegen
destination:
server: https://kubernetes.default.svc
namespace: openproject # <--- WICHTIG: Der Namespace, in den installiert wird
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true # Erstellt den Namespace 'openproject' automatisch
ignoreDifferences:
# Das hast du gut drin! Behalte es bei.
# Da OpenProject PVCs (Speicher) nutzt, verhindert das, dass ArgoCD
# ständig "Out of Sync" schreit, wenn K3s/Longhorn kleine Metadaten am Speicher ändert.
- group: ""
kind: PersistentVolumeClaim
jqPathExpressions:
- .metadata.annotations."pv.kubernetes.io/bind-completed"
- .metadata.annotations."pv.kubernetes.io/bound-by-controller"
- .metadata.annotations."volume.beta.kubernetes.io/storage-provisioner"
- .metadata.annotations."volume.kubernetes.io/storage-provisioner"
- .metadata.uid
- .metadata.resourceVersion
- .status