datadog-agent icon indicating copy to clipboard operation
datadog-agent copied to clipboard

cluster-agent: ignore ComponentStatus as it is deprecated

Open yizhang-zen opened this issue 3 years ago • 2 comments

Describe what happened: Seeing error from datadog cluster agent:

Could not retrieve the status from the control plane's components Get "https://10.236.0.1:443/api/v1/componentstatuses?timeout=10s&timeoutSeconds=10": net/http: request canceled (Client.Timeout exceeded while awaiting headers)

https://kubernetes.io/docs/setup/release/notes/#changes-by-kind-7

Kube-apiserver: the componentstatus API is deprecated.

Describe what you expected: Get rid of ComponentStatus after it has been deprecated, by removing https://github.com/DataDog/datadog-agent/blob/master/pkg/collector/corechecks/cluster/kubernetesapiserver/kubernetes_apiserver.go#L177-L186

yizhang-zen avatar Apr 05 '21 21:04 yizhang-zen

Hi @yizhang-zen. We will address this issue with DCA version 1.12: https://github.com/DataDog/datadog-agent/pull/7946

kaitlavs avatar Apr 26 '21 15:04 kaitlavs

Any development on this? I see that agent version 7.30.0 (https://github.com/DataDog/datadog-agent/pull/8577) introduced a flag to disable this. Is that flag accessible for users of the helm chart?

atmask avatar Mar 05 '24 17:03 atmask