fix: Prune=false guard on every PVC under a prune-enabled Application
Same protection already given to polymarket-bot postgres and n8n: without it, removing a PVC manifest from git (rename, multi-doc refactor) would make ArgoCD destroy the volume and its data. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -8,6 +8,9 @@ metadata:
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
|
annotations:
|
||||||
|
# Never let ArgoCD prune this PVC: it holds persistent app data.
|
||||||
|
argocd.argoproj.io/sync-options: Prune=false
|
||||||
name: filebrowser-db
|
name: filebrowser-db
|
||||||
namespace: filebrowser
|
namespace: filebrowser
|
||||||
spec:
|
spec:
|
||||||
|
|||||||
@@ -8,6 +8,9 @@ metadata:
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
|
annotations:
|
||||||
|
# Never let ArgoCD prune this PVC: it holds persistent app data.
|
||||||
|
argocd.argoproj.io/sync-options: Prune=false
|
||||||
name: ghost-en-content
|
name: ghost-en-content
|
||||||
namespace: ghost-en
|
namespace: ghost-en
|
||||||
spec:
|
spec:
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
|
annotations:
|
||||||
|
# Never let ArgoCD prune this PVC: it holds persistent app data.
|
||||||
|
argocd.argoproj.io/sync-options: Prune=false
|
||||||
name: openclaw-pvc
|
name: openclaw-pvc
|
||||||
namespace: openclaw
|
namespace: openclaw
|
||||||
spec:
|
spec:
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
|
annotations:
|
||||||
|
# Never let ArgoCD prune this PVC: it holds persistent app data.
|
||||||
|
argocd.argoproj.io/sync-options: Prune=false
|
||||||
name: registry-cache-pvc
|
name: registry-cache-pvc
|
||||||
namespace: registry-cache
|
namespace: registry-cache
|
||||||
spec:
|
spec:
|
||||||
|
|||||||
@@ -8,6 +8,9 @@ metadata:
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
|
annotations:
|
||||||
|
# Never let ArgoCD prune this PVC: it holds persistent app data.
|
||||||
|
argocd.argoproj.io/sync-options: Prune=false
|
||||||
name: researchowl-data
|
name: researchowl-data
|
||||||
namespace: researchowl
|
namespace: researchowl
|
||||||
spec:
|
spec:
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
|
annotations:
|
||||||
|
# Never let ArgoCD prune this PVC: it holds persistent app data.
|
||||||
|
argocd.argoproj.io/sync-options: Prune=false
|
||||||
name: trilium-pvc
|
name: trilium-pvc
|
||||||
namespace: trilium
|
namespace: trilium
|
||||||
spec:
|
spec:
|
||||||
|
|||||||
@@ -8,6 +8,9 @@ metadata:
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
|
annotations:
|
||||||
|
# Never let ArgoCD prune this PVC: it holds persistent app data.
|
||||||
|
argocd.argoproj.io/sync-options: Prune=false
|
||||||
name: umami-postgres-data
|
name: umami-postgres-data
|
||||||
namespace: umami
|
namespace: umami
|
||||||
spec:
|
spec:
|
||||||
|
|||||||
@@ -8,6 +8,9 @@ metadata:
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
|
annotations:
|
||||||
|
# Never let ArgoCD prune this PVC: it holds persistent app data.
|
||||||
|
argocd.argoproj.io/sync-options: Prune=false
|
||||||
name: zona-exclusion-data
|
name: zona-exclusion-data
|
||||||
namespace: zona-exclusion
|
namespace: zona-exclusion
|
||||||
spec:
|
spec:
|
||||||
|
|||||||
Reference in New Issue
Block a user