From 73673398017b7235056ffd8be87d80cb7c248efd Mon Sep 17 00:00:00 2001 From: Andrei Kvapil Date: Wed, 3 Jul 2024 17:15:53 +0200 Subject: [PATCH] fix RBAC in Helm-chart (#247) Signed-off-by: Andrei Kvapil --- .../templates/rbac/clusterrole-manager-role.yml | 16 ++++++++++++++++ config/rbac/role.yaml | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/charts/etcd-operator/templates/rbac/clusterrole-manager-role.yml b/charts/etcd-operator/templates/rbac/clusterrole-manager-role.yml index ccb982a..6cc7937 100644 --- a/charts/etcd-operator/templates/rbac/clusterrole-manager-role.yml +++ b/charts/etcd-operator/templates/rbac/clusterrole-manager-role.yml @@ -17,6 +17,22 @@ rules: - patch - update - watch + - apiGroups: + - "" + resources: + - endpoints + verbs: + - get + - list + - watch + - apiGroups: + - "" + resources: + - secrets + verbs: + - list + - get + - watch - apiGroups: - "" resources: diff --git a/config/rbac/role.yaml b/config/rbac/role.yaml index 69ccd7d..319a30b 100644 --- a/config/rbac/role.yaml +++ b/config/rbac/role.yaml @@ -30,7 +30,7 @@ rules: - secrets verbs: - list - - view + - get - watch - apiGroups: - ""