From cb89fbae44c5e579490333fe2c101091a40f992e Mon Sep 17 00:00:00 2001
From: shuting <shuting@nirmata.com>
Date: Tue, 9 May 2023 16:22:55 +0800
Subject: [PATCH] remove the duplicate entry (#7125)

Signed-off-by: ShutingZhao <shuting@nirmata.com>
---
 .../kyverno/templates/admission-controller/role.yaml   | 10 ----------
 config/install-latest-testing.yaml                     | 10 ----------
 2 files changed, 20 deletions(-)

diff --git a/charts/kyverno/templates/admission-controller/role.yaml b/charts/kyverno/templates/admission-controller/role.yaml
index 9e2d39d67a..5a0693d632 100644
--- a/charts/kyverno/templates/admission-controller/role.yaml
+++ b/charts/kyverno/templates/admission-controller/role.yaml
@@ -38,16 +38,6 @@ rules:
       - get
       - patch
       - update
-  - apiGroups:
-      - coordination.k8s.io
-    resources:
-      - leases
-    verbs:
-      - create
-      - delete
-      - get
-      - patch
-      - update
   # Allow update of Kyverno deployment annotations
   - apiGroups:
       - apps
diff --git a/config/install-latest-testing.yaml b/config/install-latest-testing.yaml
index 4203fe67c6..4b14e5b377 100644
--- a/config/install-latest-testing.yaml
+++ b/config/install-latest-testing.yaml
@@ -34883,16 +34883,6 @@ rules:
       - get
       - patch
       - update
-  - apiGroups:
-      - coordination.k8s.io
-    resources:
-      - leases
-    verbs:
-      - create
-      - delete
-      - get
-      - patch
-      - update
   # Allow update of Kyverno deployment annotations
   - apiGroups:
       - apps