Closed stevehipwell closed 3 years ago
Is there a simple way to remove this element from the collectors
list without overriding the entire list?
@jb-2020 no easy way to modify a single element in an array. My issue has the potential options in it.
Thank you @mrueg.
Describe the bug The kube-state-metrics helm chart includes a collector for
verticalpodautoscalers
which is an optional resource and not installed in a cluster by default. This causes a large number of errors to be logged. This is compounded by the way the collectors are configured in an array meaning if you wish to turn this off you need to maintain the list of collectors and not get updates from the chart.Version of Helm and Kubernetes:
Helm Version: n/a
Kubernetes Version: v1.18, v1.19, v1.20
Which chart: kube-state-metrics
Which version of the chart: v3.3.1
What happened: A large number of errors.
What you expected to happen:
How to reproduce it (as minimally and precisely as possible): Install chart into bare cluster and watch the logs.
Changed values of values.yaml (only put values which differ from the defaults): n/a
The helm command that you execute and failing/misfunctioning:
n/a
Helm values set after installation/upgrade:
n/a
Anything else we need to know:
I'd suggest removing
verticalpodautoscalers
from thecollectors
value and adding anadditionalCollectors
value that is concated withcollectors
in the chart to enable augmenting the default without having to manage them (verticalpodautoscalers
could be added to this but I'd suggest not as you will get errors on a default install on a default cluster). I'd happily open a PR for this.