Bug 1947478 - discovery v1 beta1 EndpointSlice is deprecated in Kubernetes 1.21 (OCP 4.8)
Summary: discovery v1 beta1 EndpointSlice is deprecated in Kubernetes 1.21 (OCP 4.8)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Networking
Version: 4.8
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.8.0
Assignee: Stephen Greene
QA Contact: jechen
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-08 14:41 UTC by Stephen Greene
Modified: 2022-08-04 22:32 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-27 22:58:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift coredns pull 56 0 None open [WIP] Bug 1947478: Upstream cherry-picks and dep bumps for kube 1.21 compatability 2021-04-23 14:41:51 UTC
Github openshift router pull 282 0 None open Bug 1947478: Switch from discovery v1beta1 to discovery v1 2021-05-11 21:19:38 UTC
Red Hat Product Errata RHSA-2021:2438 0 None None None 2021-07-27 22:58:32 UTC

Description Stephen Greene 2021-04-08 14:41:15 UTC
Discovery.k8s.io/v1beta1 EndpointSlices are deprecated in favor of discovery.k8s.io/v1 in Kubernetes 1.21

See https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.21.md

The router repo should switch from v1beta1 EndpointSlices to v1 EndpointSlices in OCP 4.8 to avoid the following log warning:

W0408 08:08:46.887085       1 warnings.go:70] discovery.k8s.io/v1beta1 EndpointSlice is deprecated in v1.21+, unavailable in v1.25+; use discovery.k8s.io/v1 EndpointSlice

Pulled from:

https://prow.ci.openshift.org/view/gs/origin-ci-test/pr-logs/pull/openshift_router/274/pull-ci-openshift-router-master-e2e-agnostic/1380051277521620992

Comment 1 Stephen Greene 2021-04-09 14:30:05 UTC
Openshift/CoreDNS is also affected by the v1beta1 EndpointSlices deprecation. Scoping this BZ to include import fixes for both openshift/router and openshift/coredns.

Ryan, feel free to patch the Router repo when you get the chance. I will cherry-pick https://github.com/coredns/coredns/pull/4568 to our fork once it merges upstream and re-use this BZ number to do so.

Comment 4 jechen 2021-05-16 20:49:52 UTC
Verified in  4.8.0-0.nightly-2021-05-14-075932

$ oc get clusterversions.config.openshift.io 
NAME      VERSION                             AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.8.0-0.nightly-2021-05-14-075932   True        False         10m     Cluster version is 4.8.0-0.nightly-2021-05-14-075932


No longer see v1beta1 EndpointSlices warning in logs

$ oc -n openshift-dns logs dns-default-2f8sj -c dns|tail
.:5353
[INFO] plugin/reload: Running configuration MD5 = b84c49a40e040f4e11e171af90bde448
CoreDNS-1.8.1
linux/amd64, go1.16.1, 

$ oc -n openshift-ingress logs router-default-759fcd959f-8fjl8 |tail
I0516 20:17:15.683980       1 router.go:579] template "msg"="router reloaded"  "output"=" - Checking http://localhost:80 ...\n - Health check ok : 0 retry attempt(s).\n"
I0516 20:17:51.415670       1 router.go:579] template "msg"="router reloaded"  "output"=" - Checking http://localhost:80 ...\n - Health check ok : 0 retry attempt(s).\n"
I0516 20:17:56.409790       1 router.go:579] template "msg"="router reloaded"  "output"=" - Checking http://localhost:80 ...\n - Health check ok : 0 retry attempt(s).\n"

Comment 7 errata-xmlrpc 2021-07-27 22:58:16 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.8.2 bug fix and security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:2438


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