kube-state-metrics icon indicating copy to clipboard operation
kube-state-metrics copied to clipboard

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

Open arajkumar opened this issue 2 years ago • 2 comments

What happened: The following warning is seen when you run KSM on k8s v1.23+ cluster,

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

What you expected to happen: No warnings

How to reproduce it (as minimally and precisely as possible): Run KSM on k8s v1.23+ cluster

Anything else we need to know?:

IIUC, KSM supports up to (latest - 3) k8s versions. Probably KSM can start use autoscaling/v2 HorizontalPodAutoscaler once k8s v1.25 goes GA.

Environment:

  • kube-state-metrics version:
  • Kubernetes version (use kubectl version):
  • Cloud provider or hardware configuration:
  • Other info:

Reference: https://bugzilla.redhat.com/show_bug.cgi?id=2069543

arajkumar avatar Mar 30 '22 11:03 arajkumar

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot avatar Jun 28 '22 11:06 k8s-triage-robot

/remove-lifecycle stale

fpetkovski avatar Jun 28 '22 11:06 fpetkovski

k8s v1.25 have release and i think we can begin work for autoscaling/v2 HorizontalPodAutoscaler.

/assign

liangyuanpeng avatar Sep 25 '22 15:09 liangyuanpeng

Hello @liangyuanpeng do you plan to open a PR on this soon? If not I wouldn't mind help contributing for this issue :)

JoaoBraveCoding avatar Nov 21 '22 14:11 JoaoBraveCoding