From 3ff25f5bbe0fe1d4d6ca00e5428fcc3eb20af569 Mon Sep 17 00:00:00 2001 From: Eguzki Astiz Lezaun Date: Tue, 7 Jun 2022 18:27:22 +0200 Subject: [PATCH] remove unused permissions (#153) --- config/deploy/manifests.yaml | 8 -------- config/rbac/role.yaml | 8 -------- controllers/apim/ratelimitpolicy_controller.go | 1 - 3 files changed, 17 deletions(-) diff --git a/config/deploy/manifests.yaml b/config/deploy/manifests.yaml index a224c7725..db6102c04 100644 --- a/config/deploy/manifests.yaml +++ b/config/deploy/manifests.yaml @@ -700,14 +700,6 @@ rules: - patch - update - watch -- apiGroups: - - networking.istio.io - resources: - - gateways - verbs: - - get - - list - - watch - apiGroups: - security.istio.io resources: diff --git a/config/rbac/role.yaml b/config/rbac/role.yaml index fce41d9bf..30ce70175 100644 --- a/config/rbac/role.yaml +++ b/config/rbac/role.yaml @@ -91,14 +91,6 @@ rules: - patch - update - watch -- apiGroups: - - networking.istio.io - resources: - - gateways - verbs: - - get - - list - - watch - apiGroups: - security.istio.io resources: diff --git a/controllers/apim/ratelimitpolicy_controller.go b/controllers/apim/ratelimitpolicy_controller.go index 68913ad51..ed7a6597d 100644 --- a/controllers/apim/ratelimitpolicy_controller.go +++ b/controllers/apim/ratelimitpolicy_controller.go @@ -50,7 +50,6 @@ type RateLimitPolicyReconciler struct { //+kubebuilder:rbac:groups=apim.kuadrant.io,resources=ratelimitpolicies,verbs=get;list;watch;create;update;patch;delete //+kubebuilder:rbac:groups=apim.kuadrant.io,resources=ratelimitpolicies/status,verbs=get;update;patch //+kubebuilder:rbac:groups=apim.kuadrant.io,resources=ratelimitpolicies/finalizers,verbs=update -//+kubebuilder:rbac:groups=networking.istio.io,resources=gateways,verbs=get;list;watch //+kubebuilder:rbac:groups=extensions.istio.io,resources=wasmplugins,verbs=get;list;watch;create;delete;update;patch //+kubebuilder:rbac:groups=limitador.kuadrant.io,resources=ratelimits,verbs=get;list;watch;create;update;delete;patch