Skip to content

Commit 096e67c

Browse files
KoenDierckxDrFaust92
authored andcommitted
[kube-state-metrics]
* added missing rolebindings to values.yaml * added rolebindings rule to role template Signed-off-by: DIERCKXK <[email protected]>
1 parent 1a2fe51 commit 096e67c

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

charts/kube-state-metrics/templates/role.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,12 @@ rules:
129129
- roles
130130
verbs: ["list", "watch"]
131131
{{ end -}}
132+
{{ if has "rolebindings" $.Values.collectors }}
133+
- apiGroups: ["rbac.authorization.k8s.io"]
134+
resources:
135+
- rolebindings
136+
verbs: ["list", "watch"]
137+
{{ end -}}
132138
{{ if has "nodes" $.Values.collectors }}
133139
- apiGroups: [""]
134140
resources:

charts/kube-state-metrics/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,7 @@ collectors:
437437
# - clusterrolebindings
438438
# - clusterroles
439439
# - roles
440+
# - rolebindings
440441

441442
# Enabling kubeconfig will pass the --kubeconfig argument to the container
442443
kubeconfig:

0 commit comments

Comments
 (0)