Skip to content

Commit ca78590

Browse files
authored
Merge pull request kubernetes#86084 from cbf123/apiserver_rbac_fix
update RBAC rules in e2e aggregator test
2 parents 541b4e4 + a9f80c7 commit ca78590

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/e2e/apimachinery/aggregator.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ func TestSampleAPIServer(f *framework.Framework, aggrclient *aggregatorclient.Cl
144144
// role for listing ValidatingWebhookConfiguration/MutatingWebhookConfiguration/Namespaces
145145
ObjectMeta: metav1.ObjectMeta{Name: "sample-apiserver-reader"},
146146
Rules: []rbacv1.PolicyRule{
147-
rbacv1helpers.NewRule("list").Groups("").Resources("namespaces").RuleOrDie(),
148-
rbacv1helpers.NewRule("list").Groups("admissionregistration.k8s.io").Resources("*").RuleOrDie(),
147+
rbacv1helpers.NewRule("get", "list", "watch").Groups("").Resources("namespaces").RuleOrDie(),
148+
rbacv1helpers.NewRule("get", "list", "watch").Groups("admissionregistration.k8s.io").Resources("*").RuleOrDie(),
149149
},
150150
})
151151
framework.ExpectNoError(err, "creating cluster role %s", "sample-apiserver-reader")

0 commit comments

Comments
 (0)