From 70a098df4cf1a3556ba2f1e0e236b546d49e5d81 Mon Sep 17 00:00:00 2001 From: jpgouin Date: Tue, 17 Dec 2024 11:41:17 +0100 Subject: [PATCH] allow exec into pod and fetching log in shared mode (#160) --- pkg/controller/cluster/agent/shared.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controller/cluster/agent/shared.go b/pkg/controller/cluster/agent/shared.go index 274c6d7b..138e2546 100644 --- a/pkg/controller/cluster/agent/shared.go +++ b/pkg/controller/cluster/agent/shared.go @@ -245,7 +245,7 @@ func (s *SharedAgent) role() *rbacv1.Role { { Verbs: []string{"*"}, APIGroups: []string{""}, - Resources: []string{"pods", "secrets", "configmaps", "services"}, + Resources: []string{"pods", "pods/log", "pods/exec", "secrets", "configmaps", "services"}, }, { Verbs: []string{"get", "watch", "list"},