Bug 2029743 - policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget
Summary: policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1...
Keywords:
Status: CLOSED DUPLICATE of bug 2010393
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Monitoring
Version: 4.10
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: ---
Assignee: Simon Pasquier
QA Contact: Junqi Zhao
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-12-07 08:30 UTC by Junqi Zhao
Modified: 2021-12-07 09:27 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-12-07 09:27:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
kube-state-metrics logs (39.77 KB, text/plain)
2021-12-07 08:30 UTC, Junqi Zhao
no flags Details

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 ***


Note You need to log in before you can comment on or make changes to this bug.