Add read permissions for statefulsets for kube-scheduler

This commit is contained in:
Jordan Liggitt 2017-03-01 15:08:48 -05:00
parent 0796d5c0d8
commit 4525e042fc
No known key found for this signature in database
GPG Key ID: 24E7ADF9A3B42012
2 changed files with 9 additions and 0 deletions

View File

@ -351,6 +351,7 @@ func ClusterRoles() []rbac.ClusterRole {
// things that select pods
rbac.NewRule(Read...).Groups(legacyGroup).Resources("services", "replicationcontrollers").RuleOrDie(),
rbac.NewRule(Read...).Groups(extensionsGroup).Resources("replicasets").RuleOrDie(),
rbac.NewRule(Read...).Groups(appsGroup).Resources("statefulsets").RuleOrDie(),
// things that pods use
rbac.NewRule(Read...).Groups(legacyGroup).Resources("persistentvolumeclaims", "persistentvolumes").RuleOrDie(),
},

View File

@ -645,6 +645,14 @@ items:
- get
- list
- watch
- apiGroups:
- apps
resources:
- statefulsets
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources: