Merge pull request #42351 from liggitt/scheduler-statefulset

Automatic merge from submit-queue (batch tested with PRs 41919, 41149, 42350, 42351, 42285)

Add read permissions for statefulsets for kube-scheduler

https://github.com/kubernetes/kubernetes/issues/41708 added statefulset awareness to the scheduler. This adds the corresponding permission to the scheduler role.
This commit is contained in:
Kubernetes Submit Queue 2017-03-03 16:44:43 -08:00 committed by GitHub
commit 346c0ba993
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: