Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update bundled kube-state-metrics to v2.7.0 to mitigate deprecation warnings #14487

Closed
jeroenj opened this issue Nov 25, 2022 · 3 comments
Closed

Comments

@jeroenj
Copy link

jeroenj commented Nov 25, 2022

Starting form Kubernetes 1.23 we're getting deprecation warnings like the following:

warning "autoscaling/v2beta2 HorizontalPodAutoscaler is deprecated in v1.23+, unavailable in v1.26+; use autoscaling/v2 HorizontalPodAutoscaler"

This is because currently kube-state-metrics 2.4.2 is being used:

k8s.io/kube-state-metrics/v2 v2.4.2
.

The issue is that kube-state-metrics is still calling the deprecated autoscaling/v2beta2 API: kubernetes/kube-state-metrics#1711. This got fixed in kubernetes/kube-state-metrics#1711 and was released as part of version 2.7.0: https://github.com/kubernetes/kube-state-metrics/releases/tag/v2.7.0.

@guhcampos
Copy link

I believe this can be closed, I was looking for open issues regarding bumping that to 2.8.0 as it provides the metrics I want, and during the research, I noticed the current version is 2.7.0.

@jeroenj
Copy link
Author

jeroenj commented Apr 7, 2023

Thanks for noticing. It was indeed upgraded in #15623. It looks like this will be released as part of 7.44.0. 👍

Closing this issue.

@jeroenj jeroenj closed this as completed Apr 7, 2023
@yomofo2s
Copy link

yomofo2s commented May 4, 2023

This fix the error for Kubernetes v 1.24.10-gke.2300 when the KSM is upgraded from kube-state-metrics:v2.6.0 to kube-state-metrics:v2.7.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants