dev-tools/argocd-apps/gitea.yaml
2026-03-20 01:13:44 +02:00

54 lines
1.2 KiB
YAML

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: gitea
namespace: argocd
labels:
env: dev-tools
spec:
project: dev-tools
source:
repoURL: 'ssh://git@gitea-ssh.dev-tools.svc.cluster.local:2222/dvirlabs/dev-tools.git'
targetRevision: HEAD
path: charts/helm-gitea
helm:
valueFiles:
- ../../manifests/gitea/values.yaml
destination:
server: https://kubernetes.default.svc
namespace: dev-tools
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
- PrunePropagationPolicy=foreground
ignoreDifferences:
# StatefulSet → PVC templates are immutable → must ignore
- group: apps
kind: StatefulSet
namespace: dev-tools
jsonPointers:
- /spec/volumeClaimTemplates
# PVC → Kubernetes mutates these fields
- group: ""
kind: PersistentVolumeClaim
namespace: dev-tools
jsonPointers:
- /status
- /spec/volumeName
# Service → clusterIP is auto-assigned
- group: ""
kind: Service
namespace: dev-tools
jsonPointers:
- /spec/clusterIP
- /spec/clusterIPs