mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/kube-state-metrics] Add missing permission for volumeattachments collector (#21079)
When enabling the volumeattachments collector, the following error is logged without this permission: Failed to list *v1.VolumeAttachment: volumeattachments.storage.k8s.io is forbidden: User "XXXXX:kube-state-metrics" cannot list resource "volumeattachments" in API group "storage.k8s.io" at the cluster scope Signed-off-by: Fabrice Rabaute <fabrice@arista.com>
This commit is contained in:
@@ -6,7 +6,7 @@ keywords:
|
||||
- monitoring
|
||||
- prometheus
|
||||
- kubernetes
|
||||
version: 2.7.1
|
||||
version: 2.7.2
|
||||
appVersion: 1.9.5
|
||||
home: https://github.com/kubernetes/kube-state-metrics/
|
||||
sources:
|
||||
|
||||
@@ -166,9 +166,9 @@ rules:
|
||||
verbs: ["list", "watch"]
|
||||
{{ end -}}
|
||||
{{ if .Values.collectors.volumeattachments }}
|
||||
- apiGroups: ["storageclasses.k8s.io"]
|
||||
- apiGroups: ["storage.k8s.io"]
|
||||
resources:
|
||||
- storageclasses
|
||||
- volumeattachments
|
||||
verbs: ["list", "watch"]
|
||||
{{ end -}}
|
||||
{{ if .Values.collectors.verticalpodautoscalers }}
|
||||
|
||||
Reference in New Issue
Block a user