mirror of
https://github.com/outbackdingo/Biohazard.git
synced 2026-01-27 10:18:27 +00:00
fix: anti-delete-all-persistence labelSelector
This commit is contained in:
@@ -14,6 +14,11 @@ spec:
|
||||
- resources:
|
||||
kinds: ["v1/Namespace", "v1/PersistentVolumeClaim", "v1/PersistentVolume", "postgresql.cnpg.io/*/Cluster", "postgres-operator.crunchydata.com/*/PostgresCluster"]
|
||||
operations: ["DELETE"]
|
||||
selector:
|
||||
matchExpressions:
|
||||
- key: "kyverno.home.arpa/delete"
|
||||
operator: "NotIn"
|
||||
values: ["CONFIRM-DELETE"]
|
||||
validate:
|
||||
deny: {}
|
||||
message: |
|
||||
|
||||
Reference in New Issue
Block a user