Ignore pvc on gitea

This commit is contained in:
dvirlabs 2026-03-20 01:16:37 +02:00
parent 7d57d12af1
commit 835aedd928

View File

@ -5,10 +5,8 @@ metadata:
namespace: argocd namespace: argocd
labels: labels:
env: dev-tools env: dev-tools
spec: spec:
project: dev-tools project: dev-tools
source: source:
repoURL: 'ssh://git@gitea-ssh.dev-tools.svc.cluster.local:2222/dvirlabs/dev-tools.git' repoURL: 'ssh://git@gitea-ssh.dev-tools.svc.cluster.local:2222/dvirlabs/dev-tools.git'
targetRevision: HEAD targetRevision: HEAD
@ -16,11 +14,9 @@ spec:
helm: helm:
valueFiles: valueFiles:
- ../../manifests/gitea/values.yaml - ../../manifests/gitea/values.yaml
destination: destination:
server: https://kubernetes.default.svc server: https://kubernetes.default.svc
namespace: dev-tools namespace: dev-tools
syncPolicy: syncPolicy:
automated: automated:
prune: true prune: true
@ -28,16 +24,14 @@ spec:
syncOptions: syncOptions:
- CreateNamespace=true - CreateNamespace=true
- PrunePropagationPolicy=foreground - PrunePropagationPolicy=foreground
- RespectIgnoreDifferences=true
ignoreDifferences: ignoreDifferences:
# StatefulSet → PVC templates are immutable → must ignore
- group: apps - group: apps
kind: StatefulSet kind: StatefulSet
namespace: dev-tools namespace: dev-tools
jsonPointers: jsonPointers:
- /spec/volumeClaimTemplates - /spec/volumeClaimTemplates
# PVC → Kubernetes mutates these fields
- group: "" - group: ""
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
namespace: dev-tools namespace: dev-tools
@ -45,7 +39,6 @@ spec:
- /status - /status
- /spec/volumeName - /spec/volumeName
# Service → clusterIP is auto-assigned
- group: "" - group: ""
kind: Service kind: Service
namespace: dev-tools namespace: dev-tools