allow heapster clusterrole to see deployments

This commit is contained in:
Faraaz Khan
2017-06-29 05:15:49 +00:00
parent 17e19dfce6
commit 7b6727f7f7
2 changed files with 9 additions and 0 deletions

View File

@@ -243,6 +243,7 @@ func ClusterRoles() []rbac.ClusterRole {
ObjectMeta: metav1.ObjectMeta{Name: "system:heapster"},
Rules: []rbac.PolicyRule{
rbac.NewRule(Read...).Groups(legacyGroup).Resources("events", "pods", "nodes", "namespaces").RuleOrDie(),
rbac.NewRule(Read...).Groups(extensionsGroup).Resources("deployments").RuleOrDie(),
},
},
{