From 001627000f6610bf9804c14ef82da316c9d6a34e Mon Sep 17 00:00:00 2001 From: Jordan Liggitt Date: Tue, 6 Nov 2018 10:23:39 -0500 Subject: [PATCH] Include read access to controllerrevisions for admin/edit/view roles --- plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go | 1 + .../authorizer/rbac/bootstrappolicy/testdata/cluster-roles.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go b/plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go index 33b3e61068..99c483d562 100644 --- a/plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go +++ b/plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go @@ -306,6 +306,7 @@ func ClusterRoles() []rbacv1.ClusterRole { rbacv1helpers.NewRule(Read...).Groups(legacyGroup).Resources("namespaces").RuleOrDie(), rbacv1helpers.NewRule(Read...).Groups(appsGroup).Resources( + "controllerrevisions", "statefulsets", "statefulsets/scale", "daemonsets", "deployments", "deployments/scale", diff --git a/plugin/pkg/auth/authorizer/rbac/bootstrappolicy/testdata/cluster-roles.yaml b/plugin/pkg/auth/authorizer/rbac/bootstrappolicy/testdata/cluster-roles.yaml index 1df60152a9..5a8056fd67 100644 --- a/plugin/pkg/auth/authorizer/rbac/bootstrappolicy/testdata/cluster-roles.yaml +++ b/plugin/pkg/auth/authorizer/rbac/bootstrappolicy/testdata/cluster-roles.yaml @@ -271,6 +271,7 @@ items: - apiGroups: - apps resources: + - controllerrevisions - daemonsets - deployments - deployments/scale