Merge pull request #85375 from liggitt/delegated-list-watch

Add single-item list/watch to delegated authentication reader role
This commit is contained in:
Kubernetes Prow Robot 2019-11-15 20:49:41 -08:00 committed by GitHub
commit 14fe931e9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -77,7 +77,7 @@ func init() {
ObjectMeta: metav1.ObjectMeta{Name: "extension-apiserver-authentication-reader"},
Rules: []rbacv1.PolicyRule{
// this particular config map is exposed and contains authentication configuration information
rbacv1helpers.NewRule("get").Groups(legacyGroup).Resources("configmaps").Names("extension-apiserver-authentication").RuleOrDie(),
rbacv1helpers.NewRule("get", "list", "watch").Groups(legacyGroup).Resources("configmaps").Names("extension-apiserver-authentication").RuleOrDie(),
},
})
addNamespaceRole(metav1.NamespaceSystem, rbacv1.Role{

View File

@ -55,6 +55,8 @@ items:
- configmaps
verbs:
- get
- list
- watch
- apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata: