1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-04-18 02:06:52 +00:00

Add missing delete verb to admission cleanup clusterrole ()

* Add missing delete verb

Otherwise the admission cleanup report will not be able to cleanup resources

```
Error from server (Forbidden): admissionreports.kyverno.io "fffa1589-55d5-4428-a467-7778e497295f" is forbidden: User "system:serviceaccount:kyverno:kyverno-cleanup-jobs" cannot delete resource "admissionreports" in API group "kyverno.io" in the namespace "postgres"
```

Signed-off-by: Raúl Garcia Sanchez <info@raulgarcia.de>
Signed-off-by: Raul Garcia Sanchez <info@raulgarcia.de>

* updated manifests

Signed-off-by: Raul Garcia Sanchez <info@raulgarcia.de>

---------

Signed-off-by: Raúl Garcia Sanchez <info@raulgarcia.de>
Signed-off-by: Raul Garcia Sanchez <info@raulgarcia.de>
Co-authored-by: kyverno-bot <104836976+kyverno-bot@users.noreply.github.com>
Co-authored-by: shuting <shuting@nirmata.com>
This commit is contained in:
Raúl Garcia Sanchez 2023-06-02 09:10:57 +02:00 committed by GitHub
parent a6786a152e
commit 57347e93df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions
charts/kyverno/templates/cleanup
config

View file

@ -13,3 +13,4 @@ rules:
verbs:
- list
- deletecollection
- delete

View file

@ -36473,6 +36473,7 @@ rules:
verbs:
- list
- deletecollection
- delete
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole