fix role for pod-garbage-collector

This commit is contained in:
Jordan Liggitt
2017-01-09 22:59:06 -05:00
parent bda95a59ad
commit c59c11eb0d
3 changed files with 5 additions and 5 deletions

View File

@@ -192,7 +192,7 @@ func init() {
},
})
addControllerRole(rbac.ClusterRole{
ObjectMeta: api.ObjectMeta{Name: saRolePrefix + "pod-garbage-controller"},
ObjectMeta: api.ObjectMeta{Name: saRolePrefix + "pod-garbage-collector"},
Rules: []rbac.PolicyRule{
rbac.NewRule("list", "watch", "delete").Groups(legacyGroup).Resources("pods").RuleOrDie(),
rbac.NewRule("list").Groups(legacyGroup).Resources("nodes").RuleOrDie(),