Skip to content

Commit

Permalink
Merge pull request #133 from brancz/limitrange-rbac
Browse files Browse the repository at this point in the history
fix service and limitrange rbac roles and fix order and naming
  • Loading branch information
fabxc committed May 3, 2017
2 parents 007629f + a844b25 commit e46c85b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions kubernetes/kube-state-metrics-cluster-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ rules:
resources:
- nodes
- pods
- services
- resourcequotas
- replicationcontrollers
- limitranges
verbs: ["list", "watch"]
- apiGroups: ["extensions"]
resources:
Expand Down
12 changes: 6 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,23 +45,23 @@ var (
defaultCollectors = collectorSet{
"daemonsets": struct{}{},
"deployments": struct{}{},
"pods": struct{}{},
"limitranges": struct{}{},
"nodes": struct{}{},
"resourcequotas": struct{}{},
"limitrange": struct{}{},
"pods": struct{}{},
"replicasets": struct{}{},
"replicationcontrollers": struct{}{},
"resourcequotas": struct{}{},
"services": struct{}{},
}
availableCollectors = map[string]func(registry prometheus.Registerer, kubeClient clientset.Interface){
"daemonsets": RegisterDaemonSetCollector,
"deployments": RegisterDeploymentCollector,
"pods": RegisterPodCollector,
"limitranges": RegisterLimitRangeCollector,
"nodes": RegisterNodeCollector,
"resourcequotas": RegisterResourceQuotaCollector,
"limitrange": RegisterLimitRangeCollector,
"pods": RegisterPodCollector,
"replicasets": RegisterReplicaSetCollector,
"replicationcontrollers": RegisterReplicationControllerCollector,
"resourcequotas": RegisterResourceQuotaCollector,
"services": RegisterServiceCollector,
}
)
Expand Down

0 comments on commit e46c85b

Please sign in to comment.