Bug 2102086 - The base image is still 4.10 for operator-sdk 1.22
Summary: The base image is still 4.10 for operator-sdk 1.22
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Operator SDK
Version: 4.11
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.11.0
Assignee: Jesus M. Rodriguez
QA Contact: Fan Jia
URL:
Whiteboard:
Depends On: 2102269
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-29 10:17 UTC by Fan Jia
Modified: 2022-08-10 11:20 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2102269 (view as bug list)
Environment:
Last Closed: 2022-08-10 11:19:34 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 272 0 None open Bug 2102086: Bump OCP and UBI versions 2022-06-29 14:38:36 UTC
Red Hat Product Errata RHSA-2022:5069 0 None None None 2022-08-10 11:20:32 UTC

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


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