Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions charts/kube-state-metrics/templates/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ rules:
- roles
verbs: ["list", "watch"]
{{ end -}}
{{ if has "rolebindings" $.Values.collectors }}
- apiGroups: ["rbac.authorization.k8s.io"]
resources:
- rolebindings
verbs: ["list", "watch"]
{{ end -}}
{{ if has "nodes" $.Values.collectors }}
- apiGroups: [""]
resources:
Expand Down
1 change: 1 addition & 0 deletions charts/kube-state-metrics/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@ collectors:
# - clusterrolebindings
# - clusterroles
# - roles
# - rolebindings

# Enabling kubeconfig will pass the --kubeconfig argument to the container
kubeconfig:
Expand Down
Loading