Description of problem:
When multiple versions of a CRD is declared, and webhooks for that resource exist, sometimes create/update operations will fail with an error like:
See upstream issue: https://github.com/kubernetes/kubernetes/issues/73752
A fix for this issue was recently merged upstream to the release-1.13 branch: https://github.com/kubernetes/kubernetes/pull/79495
We have applied this patch to the openshift release-4.1 branch and established that this appears to fix the issue on 4.1.
It is critical in order to run Knative on OpenShift 4.1 that this bug be included in the next z-stream release.
Version-Release number of selected component (if applicable):
Intermittent; required restart of API server pod in order to reliably trigger
Steps to Reproduce:
1. Create a CRD with multiple versions
2. Create an admission webhook for the resource
3. Create/update the resource
Error from server (InternalError): Internal error occurred: no kind "Service" is registered for version "serving.knative.dev/v1beta1" in scheme "k8s.io/apiextensions-apiserver/pkg/apiserver/apiserver.go:62"
Updates should result in admission webhook being triggered / normal admission flow.
Following https://bugzilla.redhat.com/show_bug.cgi?id=1739235#c2 steps,no such issue found.
# oc get clusterversion
NAME VERSION AVAILABLE PROGRESSING SINCE STATUS
version 4.1.0-0.nightly-2019-08-21-023728 True False 2m47s Cluster version is 4.1.0-0.nightly-2019-08-21-023728
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, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.