Bug 2066615 - Downstream OSDK still use upstream image for Hybird type operator
Summary: Downstream OSDK still use upstream image for Hybird type operator
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Operator SDK
Version: 4.10
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.11.0
Assignee: Jesus M. Rodriguez
QA Contact: Fan Jia
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-22 07:48 UTC by Fan Jia
Modified: 2022-08-10 10:55 UTC (History)
1 user (show)

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.
Clone Of:
Environment:
Last Closed: 2022-08-10 10:55:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift ocp-release-operator-sdk pull 235 0 None open Bug 2066615: run openshift plugin to get downstream images 2022-04-08 01:17:02 UTC
Red Hat Product Errata RHSA-2022:5069 0 None None None 2022-08-10 10:55:55 UTC

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


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