From 26f03543f49983a60cd8cc0e7a8c2061f3da4515 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Gustav=20Str=C3=A5b=C3=B8?= Date: Mon, 18 Sep 2023 10:15:48 +0200 Subject: [PATCH] revert role verb changes --- pkg/apis/kube/roles.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/apis/kube/roles.go b/pkg/apis/kube/roles.go index 07bfa8e60..033d28a7f 100644 --- a/pkg/apis/kube/roles.go +++ b/pkg/apis/kube/roles.go @@ -126,7 +126,7 @@ func ManageSecretsRule(secretNames []string) RuleBuilder { APIGroups: []string{""}, Resources: []string{"secrets"}, ResourceNames: secretNames, - Verbs: []string{"get", "update", "patch"}, + Verbs: []string{"get", "list", "watch", "update", "patch", "delete"}, } } } @@ -137,7 +137,7 @@ func ReadSecretsRule(secretNames []string) RuleBuilder { APIGroups: []string{""}, Resources: []string{"secrets"}, ResourceNames: secretNames, - Verbs: []string{"get"}, + Verbs: []string{"get", "list", "watch"}, } } }