From a235571a7183d2947384e148456868027a3af9c8 Mon Sep 17 00:00:00 2001 From: Andrei Kvapil Date: Wed, 3 Jul 2024 16:18:42 +0200 Subject: [PATCH] fix RBAC in Helm-chart 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 ccb982ac..6cc79370 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 69ccd7d7..319a30b6 100644 --- a/config/rbac/role.yaml +++ b/config/rbac/role.yaml @@ -30,7 +30,7 @@ rules: - secrets verbs: - list - - view + - get - watch - apiGroups: - ""