Skip to content

Commit 44e8eb1

Browse files
committed
Update volsync-pvc-backup-restore.yaml
1 parent d1cee70 commit 44e8eb1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

infrastructure/controllers/kyverno/policies/volsync-pvc-backup-restore.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,15 @@ spec:
122122
property: restic_password
123123

124124
# Rule 3: Generate ReplicationSource (backup schedule)
125+
# IMPORTANT: Only trigger on CREATE to avoid race conditions during PVC deletion
125126
- name: generate-replication-source
126127
match:
127128
any:
128129
- resources:
129130
kinds:
130131
- PersistentVolumeClaim
132+
operations:
133+
- CREATE
131134
selector:
132135
matchExpressions:
133136
- key: backup

0 commit comments

Comments
 (0)