DataDog / datadog-agent

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

Datadog Cluster Agent warning about CronJob deprecation #10006

Open adammw opened 2 years ago

adammw commented 2 years ago
batch/v1beta1 CronJob is deprecated in v1.21+, unavailable in v1.25+; use batch/v1 CronJob

Tested with cluster-agent 1.16.0 and Kubernetes v1.21.6.

mscanlon72 commented 2 years ago

As well as this:

policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget

SpikePy commented 2 years ago

Please fix this, its spamming our log (80k entries per day) and as you might already know ... we have to pay for each log entry. its not nice to let your customers pay for problems you cause with your own software!

sashasimkin commented 2 years ago

I'm having the same issue, and I'd gladly look for a way to use new API versions, but the problem is - I don't have deprecated resources in the cluster 🤔

$ k get poddisruptionbudgets.policy --all-namespaces -o json | jq '.items[].apiVersion'
"policy/v1"
$ k get cronjob --all-namespaces -o json | jq '.items[].apiVersion'
$ # No cronjobs in the cluster
epk commented 2 years ago

Fixed in https://github.com/DataDog/datadog-agent/pull/11126

NemanjaMilenkovic commented 8 months ago

Hi! Although warnings should be silenced by https://github.com/DataDog/datadog-agent/pull/11126, there are still calls/logs to removed API made:

Screenshot 2024-03-05 at 18 34 54

As this issue is still opened - are there any updates on this?

(GKE) Kubernetes Version: "1.26.10-gke.1101000" Helm Release Version: "3.1.9" Datadog Cluster Agent/Agent Version: "7.39.0"