Bug 2102269

Summary: The base image is still 4.10 for operator-sdk
Product: OpenShift Container Platform Reporter: Jesus M. Rodriguez <jesusr>
Component: Operator SDKAssignee: Nobody <nobody>
Status: CLOSED ERRATA QA Contact: Fan Jia <jfan>
Severity: high Docs Contact:
Priority: high    
Version: 4.12CC: cchantse, jfan
Target Milestone: ---   
Target Release: 4.12.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Rebase: Bug Fixes Only
Doc Text:
Important: if this rebase also contains *enhancements* (or contains only enhancements), select the correct option from the Doc Type drop-down list. Rebase package(s) to version: OCP to 4.12 and UBI to 8.6. Highlights and important bug fixes:
Story Points: ---
Clone Of: 2102086 Environment:
Last Closed: 2023-01-17 19:50:54 UTC Type: ---
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:    
Bug Blocks: 2102086    

Description Jesus M. Rodriguez 2022-06-29 14:42:15 UTC
+++ This bug was initially created as a clone of Bug #2102086 +++

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 1 Jesus M. Rodriguez 2022-06-29 15:13:35 UTC
Bumped OCP to 4.12 and UBI to 8.6

Comment 3 Fan Jia 2022-07-04 03:50:26 UTC
test env:
operator-sdk version: "v1.20.0-ocp", commit: "31e1fa1e2d0a339b344eeab8de5b87dbfaf100be", kubernetes version: "v1.23", go version: "go1.18.3", GOOS: "linux", GOARCH: "amd64"

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

operator-sdk init --plugins=ansible --domain=demo.com
#cat Dockerfile
FROM registry.redhat.io/openshift4/ose-ansible-operator:v4.12

Comment 7 errata-xmlrpc 2023-01-17 19:50:54 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 (Moderate: OpenShift Container Platform 4.12.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:7399