Incorrect ownerReference for a service account while upgrading an Operator in Openshift 4
Issue
- The
new
as well as theold
CSVs stay inPending
state while upgrading an operator. -
The error seen in the old CSV is with respect to it's
service account ownership
:$ oc get csv <old-csv-name> -o yaml [...] kind: ServiceAccount message: Service account is not owned by this ClusterServiceVersion name: ServiceAccountName status: PresentNotSatisfied version: v1
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.