nirmata / kyverno-policies

Curated Policy Sets from Nirmata
https://nirmata.com
13 stars 11 forks source link

Update delete operations in preconditions #86

Closed anusha94 closed 1 year ago

anusha94 commented 1 year ago

Sample policy compatible with 1.10 - https://kyverno.io/policies/other/audit-event-on-delete/audit-event-on-delete/

In Kyverno 1.10, matching on operations is preferred over preconditions specifying inclusion or exclusion of operations. E.g., DELETE in deny and foreach blocks. This PR updates all such policies to be compatible with 1.10.

Note: This is not backwards compatible.