DataDog / datadog-agent

Main repository for Datadog Agent
https://docs.datadoghq.com/
Apache License 2.0
2.86k stars 1.2k forks source link

[BUG] kube-state-metrics throws error if a later version than the chart default is used #24506

Open andyr8939 opened 6 months ago

andyr8939 commented 6 months ago

Agent Environment AKS 1.27.9 with DataDog Agent 7.52.1 and Kube-State-Metrics v1.9.8

Describe what happened: We started getting crashes on the datadog kube state metrics deployment, so upgraded it via the DataDog Helm Chart to the latest image tag v2.12.0 as per https://github.com/kubernetes/kube-state-metrics?tab=readme-ov-file#compatibility-matrix but then we get Error: unknown flag: --collectors error in the pod and it fails to start

Describe what you expected: Agent will run with the latest version of v2.12.0

Steps to reproduce the issue: Change the image tag of the default datadog kube-state-metrics deployment to v2.12.0, either manually or via the helm chart.

Additional environment details (Operating System, Cloud provider, etc): AKS 1.27.9

siriusfreak commented 5 months ago

Hi. Seems answer to your (and mine) question is here: https://github.com/DataDog/helm-charts/issues/825