Bug 2102086

Summary: The base image is still 4.10 for operator-sdk 1.22
Product: OpenShift Container Platform Reporter: Fan Jia <jfan>
Component: Operator SDKAssignee: Jesus M. Rodriguez <jesusr>
Status: CLOSED ERRATA QA Contact: Fan Jia <jfan>
Severity: high Docs Contact:
Priority: high    
Version: 4.11   
Target Milestone: ---   
Target Release: 4.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2102269 (view as bug list) Environment:
Last Closed: 2022-08-10 11:19:34 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:
Bug Depends On: 2102269    
Bug Blocks:    

Description Fan Jia 2022-06-29 10:17:26 UTC
Description of problem:
Operator-sdk 1.22 generates operators still use the 4.10 base image.

Version-Release number of selected component (if applicable):
operator-sdk version: "v1.22.0-ocp", commit: "7cce8230bda4895aacaee6103fe9c1dadc87b77d", kubernetes version: "v1.24.1", go version: "go1.18.3", GOOS: "linux", GOARCH: "amd64"

How reproducible:
always

Steps to Reproduce:
1.operator-sdk init --plugins=ansible --domain=demo.com


Actual results:
1.#cat Dockerfile
FROM registry.redhat.io/openshift4/ose-ansible-operator:v4.10
2.#cat config/default/manager_auth_proxy_patch.yaml
spec:
  template:
    spec:
      containers:
      - name: kube-rbac-proxy
        image: registry.redhat.io/openshift4/ose-kube-rbac-proxy:v4.10

Expected results:
1.#cat Dockerfile
FROM registry.redhat.io/openshift4/ose-ansible-operator:v4.11
2.#cat config/default/manager_auth_proxy_patch.yaml
spec:
  template:
    spec:
      containers:
      - name: kube-rbac-proxy
        image: registry.redhat.io/openshift4/ose-kube-rbac-proxy:v4.11

Additional info:
same for the helm plugins

Comment 2 Fan Jia 2022-07-08 02:43:54 UTC
verified
operator-sdk version: "v1.22.0-ocp", commit: "9a16a5cb237880ee540f89d7768d93a3e4e1635e", kubernetes version: "v1.24.1", go version: "go1.18.1", GOOS: "linux", GOARCH: "amd64"

$operator-sdk init --plugins=ansible --domain=demo.com
1.#cat Dockerfile
FROM registry.redhat.io/openshift4/ose-ansible-operator:v4.11
2.#cat config/default/manager_auth_proxy_patch.yaml
spec:
  template:
    spec:
      containers:
      - name: kube-rbac-proxy
        image: registry.redhat.io/openshift4/ose-kube-rbac-proxy:v4.11

$operator-sdk init --domain=example.com --repo=github.com/example-inc/memcached-operator
1.#cat Dockerfile
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.6

$operator-sdk init --plugins=helm
1.#cat Dockerfile
FROM registry.redhat.io/openshift4/ose-helm-operator:v4.11

Comment 4 errata-xmlrpc 2022-08-10 11:19:34 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