Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1999446

Summary: Pending deprecation API version for HPA in kube-state-metrics
Product: OpenShift Container Platform Reporter: Junqi Zhao <juzhao>
Component: MonitoringAssignee: Philip Gough <pgough>
Status: CLOSED NEXTRELEASE QA Contact: Junqi Zhao <juzhao>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.9CC: alegrand, amuller, anpicker, aos-bugs, erooth, kakkoyun, pnair
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-09-03 10:01:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
kube-state-metrics logs none

Description Junqi Zhao 2021-08-31 08:04:41 UTC
Created attachment 1819291 [details]
kube-state-metrics logs

Description of problem:
# oc -n openshift-monitoring logs $(oc -n openshift-monitoring get po | grep kube-state-metrics | awk '{print $1}') -c kube-state-metrics | grep deprecated | head -n 6
W0830 23:52:53.811617       1 warnings.go:70] batch/v1beta1 CronJob is deprecated in v1.21+, unavailable in v1.25+; use batch/v1 CronJob
W0830 23:52:53.870007       1 warnings.go:70] batch/v1beta1 CronJob is deprecated in v1.21+, unavailable in v1.25+; use batch/v1 CronJob
W0830 23:52:53.870556       1 warnings.go:70] autoscaling/v2beta1 HorizontalPodAutoscaler is deprecated in v1.22+, unavailable in v1.25+; use autoscaling/v2beta2 HorizontalPodAutoscaler
W0830 23:52:53.871865       1 warnings.go:70] policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget
W0830 23:52:54.233105       1 warnings.go:70] autoscaling/v2beta1 HorizontalPodAutoscaler is deprecated in v1.22+, unavailable in v1.25+; use autoscaling/v2beta2 HorizontalPodAutoscaler
W0830 23:52:54.233715       1 warnings.go:70] policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget

HorizontalPodAutoscaler version from cluster
# oc explain HorizontalPodAutoscaler
KIND:     HorizontalPodAutoscaler
VERSION:  autoscaling/v1

CronJob/PodDisruptionBudget bug is reported in bug 1961081

Version-Release number of selected component (if applicable):
4.9.0-0.nightly-2021-08-30-192239

How reproducible:
always

Steps to Reproduce:
1. check kube-state-metrics logs
2.
3.

Actual results:


Expected results:


Additional info: