Bug 2066615

Summary: Downstream OSDK still use upstream image for Hybird type operator
Product: OpenShift Container Platform Reporter: Fan Jia <jfan>
Component: Operator SDKAssignee: Jesus M. Rodriguez <jesusr>
Status: CLOSED ERRATA QA Contact: Fan Jia <jfan>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.10CC: aos-bugs
Target Milestone: ---   
Target Release: 4.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: openshift plugin was not being run on the downstream build Consequence: hybrid helm operators scaffolded with operator-sdk would use the upstream images instead of supported downstream images. Fix: run the openshift plugin whenever the hybrid helm plugin is chosen Result: Scaffolding a hybrid helm operator will now use downstream images.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-10 10:55:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Fan Jia 2022-03-22 07:48:24 UTC
Description of problem:
Downstream OSDK still use upstream image (helm&rbac-proxy)for Hybird type operator. 

Version-Release number of selected component (if applicable):
operator-sdk version: "v1.16.0-ocp", commit: "fb8834fb343f20bfd5931c6b9e036e7b01679ca1", kubernetes version: "v1.22", go version: "go1.17.5", GOOS: "linux", GOARCH: "amd64"

How reproducible:
always

Steps to Reproduce:
1.generate one hybird operator through docs: https://docs.openshift.com/container-platform/4.10/operators/operator_sdk/helm/osdk-hybrid-helm.html

Actual results:
1. The default helm & rbac-proxy image:
$ cat config/default/manager_auth_proxy_patch.yaml 
apiVersion: apps/v1
kind: Deployment
.......
        image: gcr.io/kubebuilder/kube-rbac-proxy:v0.8.0

$ cat Dockerfile
......
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.4

Expected results:
The image should be the downstream image.
$ cat config/default/manager_auth_proxy_patch.yaml 
apiVersion: apps/v1
kind: Deployment
.......
        image: registry.redhat.io/openshift4/ose-kube-rbac-proxy:v4.10

$ cat Dockerfile
......
FROM registry.redhat.io/openshift4/ose-helm-operator:v4.10

Additional info:

Comment 2 Fan Jia 2022-04-08 04:58:29 UTC
operator-sdk version: "v1.18.1-ocp", commit: "1d8c39dd75680daaf911c10582cf755c5f16da5b", kubernetes version: "v1.22", go version: "go1.17.4", GOOS: "linux", GOARCH: "amd64"

cat config/default/manager_auth_proxy_patch.yaml
        image: registry.redhat.io/openshift4/ose-kube-rbac-proxy:v4.10

Comment 4 errata-xmlrpc 2022-08-10 10:55:17 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 (Important: OpenShift Container Platform 4.11.0 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-2022:5069