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