From d1837542aee13108be5c6407bf5c6c999bac4a86 Mon Sep 17 00:00:00 2001 From: Stano Bocinec <stano@redpanda.com> Date: Thu, 4 May 2023 16:26:01 +0200 Subject: [PATCH] Remove Endpoints RBAC permissions Signed-off-by: Stano Bocinec <stano@redpanda.com> --- deploy/chart/local-path-provisioner/templates/clusterrole.yaml | 2 +- deploy/local-path-storage.yaml | 2 +- examples/quota/local-path-storage.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy/chart/local-path-provisioner/templates/clusterrole.yaml b/deploy/chart/local-path-provisioner/templates/clusterrole.yaml index 7f58506a..607f856c 100644 --- a/deploy/chart/local-path-provisioner/templates/clusterrole.yaml +++ b/deploy/chart/local-path-provisioner/templates/clusterrole.yaml @@ -13,7 +13,7 @@ rules: resources: [ "pods" ] verbs: [ "get", "list", "watch" ] - apiGroups: [""] - resources: ["endpoints", "persistentvolumes"] + resources: ["persistentvolumes"] verbs: ["*"] - apiGroups: [ "" ] resources: [ "events" ] diff --git a/deploy/local-path-storage.yaml b/deploy/local-path-storage.yaml index 81864f05..ee3f35b1 100644 --- a/deploy/local-path-storage.yaml +++ b/deploy/local-path-storage.yaml @@ -34,7 +34,7 @@ rules: resources: [ "pods" ] verbs: [ "get", "list", "watch" ] - apiGroups: [ "" ] - resources: [ "endpoints", "persistentvolumes" ] + resources: [ "persistentvolumes" ] verbs: [ "*" ] - apiGroups: [ "" ] resources: [ "events" ] diff --git a/examples/quota/local-path-storage.yaml b/examples/quota/local-path-storage.yaml index e489eca7..39d09fea 100644 --- a/examples/quota/local-path-storage.yaml +++ b/examples/quota/local-path-storage.yaml @@ -34,7 +34,7 @@ rules: resources: [ "pods" ] verbs: [ "get", "list", "watch" ] - apiGroups: [ "" ] - resources: [ "endpoints", "persistentvolumes" ] + resources: [ "persistentvolumes" ] verbs: [ "*" ] - apiGroups: [ "" ] resources: [ "events" ] -- GitLab