Description of problem:
There appears to be a compatibility issue in latest versions of Openshift 4.5 (Tested with 4.5.0-0.nightly-2020-05-28-044428) which may have been introduced as part of serverside apply.
We are seeing the following error when creating a custom resource -
$ oc get helmrelease multicluster-mongodb-59090 -o yaml
- lastTransitionTime: "2020-05-28T18:18:17Z"
- lastTransitionTime: "2020-05-28T18:18:31Z"
message: 'failed to install release: Certificate.certmanager.k8s.io "multicluster-mongodb-client-cert"
is invalid: metadata.managedFields.fieldsType: Invalid value: "": must be `FieldsV1`'
We are not seeing this error in previous versions of OCP.
Link to GH Issue - https://github.com/open-cluster-management/backlog/issues/2378
Version-Release number of selected component (if applicable):
Install ACM operator on OCP 4.5
Steps to Reproduce:
ACM Installs successfully on OCP 4.5
Pinged certmanager author and Server Side Apply dev: https://kubernetes.slack.com/archives/C0EG7JC6T/p1591084548052700
> from what I understand there is a bug upstream as that field was added and marked required, breaking older clients talking to newer api servers. The issue comes about as pre 0.15, our own mutating webhook strips fields it does not recognise
> The advice I have been giving is to either update to cert-manager 0.15 (which uses k8s 1.18 client libs) or otherwise wait for a patch to make that field not required
To be fixed in some 1.18 release.
Workaround: use cert-manager 0.15+. Moving to z-release as this has to wait on upstream.
We're seeing this issue on ACM 1.0.x on OCP 4.5 as well. cc @firstname.lastname@example.org
Created backport PRs from the upstream fix.
Verified with OCP build 4.6.0-0.nightly-2020-06-30-020342.
Open In the Red Hat OpenShift Container Platform console navigation, select Operators -> OperatorHub, searching 'Advanced', selected the 'Advanced Cluster Management for Kubernetes' icon, click on and install it.
After finished, checking,
$ oc get csv -A
NAMESPACE NAME DISPLAY VERSION REPLACES PHASE
open-cluster-management advanced-cluster-management.v1.0.1 Advanced Cluster Management for Kubernetes 1.0.1 Succeeded
The ACM installed successfully as expected, so move the bug verified.
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 (OpenShift Container Platform 4.6 GA Images), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.