Bug 2029743

Summary: policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget
Product: OpenShift Container Platform Reporter: Junqi Zhao <juzhao>
Component: MonitoringAssignee: Simon Pasquier <spasquie>
Status: CLOSED DUPLICATE QA Contact: Junqi Zhao <juzhao>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.10CC: amuller, anpicker, aos-bugs, erooth
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-12-07 09:27:49 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-12-07 08:30:52 UTC
Created attachment 1845035 [details]
kube-state-metrics logs

Description of problem:
# oc -n openshift-monitoring get pod --show-labels | grep kube-state-metrics
kube-state-metrics-59fb9f7874-56vnv            3/3     Running   0          8h     app.kubernetes.io/component=exporter,app.kubernetes.io/managed-by=cluster-monitoring-operator,app.kubernetes.io/name=kube-state-metrics,app.kubernetes.io/part-of=openshift-monitoring,app.kubernetes.io/version=2.2.4,pod-template-hash=59fb9f7874

# oc -n openshift-monitoring logs -c kube-state-metrics $(oc -n openshift-monitoring get pod --no-headers | grep kube-state-metrics | awk '{print $1}')
...
W1206 23:50:54.669660       1 warnings.go:70] batch/v1beta1 CronJob is deprecated in v1.21+, unavailable in v1.25+; use batch/v1 CronJob
W1206 23:50:54.691753       1 warnings.go:70] autoscaling/v2beta1 HorizontalPodAutoscaler is deprecated in v1.22+, unavailable in v1.25+; use autoscaling/v2beta2 HorizontalPodAutoscaler
W1206 23:50:54.699665       1 warnings.go:70] batch/v1beta1 CronJob is deprecated in v1.21+, unavailable in v1.25+; use batch/v1 CronJob
W1206 23:50:54.708676       1 warnings.go:70] autoscaling/v2beta1 HorizontalPodAutoscaler is deprecated in v1.22+, unavailable in v1.25+; use autoscaling/v2beta2 HorizontalPodAutoscaler
W1206 23:50:54.716188       1 warnings.go:70] policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget
W1206 23:50:54.739404       1 warnings.go:70] policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget
W1206 23:56:46.490365       1 warnings.go:70] policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget

# oc explain PodDisruptionBudget | head -n 2
KIND:     PodDisruptionBudget
VERSION:  policy/v1


HorizontalPodAutoscaler/CronJob warning info is tracked in bug 1999446

Version-Release number of selected component (if applicable):
4.10.0-0.nightly-2021-12-06-162419
kube-state-metrics 2.2.4
Kubernetes v1.22.1+6859754

How reproducible:
always

Steps to Reproduce:
1. see the description
2.
3.

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

Expected results:
no warning

Additional info:

Comment 1 Simon Pasquier 2021-12-07 09:27:49 UTC

*** This bug has been marked as a duplicate of bug 2010393 ***