Ignore pvc on gitea
This commit is contained in:
parent
7d57d12af1
commit
835aedd928
@ -5,10 +5,8 @@ metadata:
|
||||
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
|
||||
@ -16,11 +14,9 @@ spec:
|
||||
helm:
|
||||
valueFiles:
|
||||
- ../../manifests/gitea/values.yaml
|
||||
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: dev-tools
|
||||
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
@ -28,16 +24,14 @@ spec:
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
- PrunePropagationPolicy=foreground
|
||||
|
||||
- RespectIgnoreDifferences=true
|
||||
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
|
||||
@ -45,7 +39,6 @@ spec:
|
||||
- /status
|
||||
- /spec/volumeName
|
||||
|
||||
# Service → clusterIP is auto-assigned
|
||||
- group: ""
|
||||
kind: Service
|
||||
namespace: dev-tools
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user