Commit 346c0ba9 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

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.
parents b432e137 4525e042
...@@ -351,6 +351,7 @@ func ClusterRoles() []rbac.ClusterRole { ...@@ -351,6 +351,7 @@ func ClusterRoles() []rbac.ClusterRole {
// things that select pods // things that select pods
rbac.NewRule(Read...).Groups(legacyGroup).Resources("services", "replicationcontrollers").RuleOrDie(), rbac.NewRule(Read...).Groups(legacyGroup).Resources("services", "replicationcontrollers").RuleOrDie(),
rbac.NewRule(Read...).Groups(extensionsGroup).Resources("replicasets").RuleOrDie(), rbac.NewRule(Read...).Groups(extensionsGroup).Resources("replicasets").RuleOrDie(),
rbac.NewRule(Read...).Groups(appsGroup).Resources("statefulsets").RuleOrDie(),
// things that pods use // things that pods use
rbac.NewRule(Read...).Groups(legacyGroup).Resources("persistentvolumeclaims", "persistentvolumes").RuleOrDie(), rbac.NewRule(Read...).Groups(legacyGroup).Resources("persistentvolumeclaims", "persistentvolumes").RuleOrDie(),
}, },
......
...@@ -646,6 +646,14 @@ items: ...@@ -646,6 +646,14 @@ items:
- list - list
- watch - watch
- apiGroups: - apiGroups:
- apps
resources:
- statefulsets
verbs:
- get
- list
- watch
- apiGroups:
- "" - ""
resources: resources:
- persistentvolumeclaims - persistentvolumeclaims
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment