Commit c0b71837 authored by Bobby (Babak) Salamat's avatar Bobby (Babak) Salamat

Fix RBAC rules to allow scheduler update annotations of pods.

parent 86b06c38
...@@ -330,7 +330,8 @@ func ClusterRoles() []rbac.ClusterRole { ...@@ -330,7 +330,8 @@ func ClusterRoles() []rbac.ClusterRole {
rbac.NewRule("get", "update", "patch", "delete").Groups(legacyGroup).Resources("endpoints").Names("kube-scheduler").RuleOrDie(), rbac.NewRule("get", "update", "patch", "delete").Groups(legacyGroup).Resources("endpoints").Names("kube-scheduler").RuleOrDie(),
// fundamental resources // fundamental resources
rbac.NewRule(Read...).Groups(legacyGroup).Resources("nodes", "pods").RuleOrDie(), rbac.NewRule(Read...).Groups(legacyGroup).Resources("nodes").RuleOrDie(),
rbac.NewRule("get", "list", "watch", "delete").Groups(legacyGroup).Resources("pods").RuleOrDie(),
rbac.NewRule("create").Groups(legacyGroup).Resources("pods/binding", "bindings").RuleOrDie(), rbac.NewRule("create").Groups(legacyGroup).Resources("pods/binding", "bindings").RuleOrDie(),
rbac.NewRule("update").Groups(legacyGroup).Resources("pods/status").RuleOrDie(), rbac.NewRule("update").Groups(legacyGroup).Resources("pods/status").RuleOrDie(),
// things that select pods // things that select pods
......
...@@ -580,8 +580,16 @@ items: ...@@ -580,8 +580,16 @@ items:
- "" - ""
resources: resources:
- nodes - nodes
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
- pods - pods
verbs: verbs:
- delete
- get - get
- list - list
- watch - watch
......
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