Ignore pvc on gitea
This commit is contained in:
parent
e6fa4ce2a3
commit
7d57d12af1
@ -5,8 +5,10 @@ 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
|
||||
@ -14,9 +16,11 @@ spec:
|
||||
helm:
|
||||
valueFiles:
|
||||
- ../../manifests/gitea/values.yaml
|
||||
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: dev-tools
|
||||
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
@ -24,39 +28,27 @@ spec:
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
- PrunePropagationPolicy=foreground
|
||||
- RespectIgnoreDifferences=true
|
||||
|
||||
ignoreDifferences:
|
||||
- group: apps
|
||||
kind: Deployment
|
||||
name: gitea
|
||||
namespace: dev-tools
|
||||
jqPathExpressions:
|
||||
- .spec.template.metadata.annotations."kubectl.kubernetes.io/restartedAt"
|
||||
# StatefulSet → PVC templates are immutable → must ignore
|
||||
- group: apps
|
||||
kind: StatefulSet
|
||||
namespace: dev-tools
|
||||
jsonPointers:
|
||||
- /status
|
||||
- /spec/volumeClaimTemplates
|
||||
|
||||
# PVC → Kubernetes mutates these fields
|
||||
- group: ""
|
||||
kind: PersistentVolumeClaim
|
||||
namespace: dev-tools
|
||||
jsonPointers:
|
||||
- /status
|
||||
- /spec/volumeName
|
||||
- /spec/storageClassName
|
||||
- /metadata/labels
|
||||
- /metadata/annotations
|
||||
|
||||
# Service → clusterIP is auto-assigned
|
||||
- group: ""
|
||||
kind: Service
|
||||
namespace: dev-tools
|
||||
jsonPointers:
|
||||
- /spec/clusterIP
|
||||
- /spec/clusterIPs
|
||||
- group: ""
|
||||
kind: PersistentVolumeClaim
|
||||
name: gitea-shared-storage
|
||||
namespace: dev-tools
|
||||
jsonPointers:
|
||||
- /spec/volumeName
|
||||
- /spec/storageClassName
|
||||
- /spec/clusterIPs
|
||||
Loading…
x
Reference in New Issue
Block a user