-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
4.17
-
None
-
Moderate
-
None
-
Rejected
-
False
-
Description of problem:
Operator-sdk 1.36.1-ocp (ocp4.17) generates go type operator that dockerfile uses "quay.io/olmqe/golang:1.21" as the default base image. Should upgrade the default golang base image to be "quay.io/olmqe/golang:1.22" since ocp 4.17 and operator-sdk 1.36.1-ocp supports golang 1.22.
Version-Release number of selected component (if applicable):
operator-sdk version operator-sdk version: "v1.36.1-ocp", commit: "056be373dcd434f631d66a53a7d8332dc90f9d07", kubernetes version: "v1.29.0", go version: "go1.22.7 (Red Hat 1.22.7-1.el9_5) X:strictfipsruntime", GOOS: "linux", GOARCH: "amd64"
How reproducible:
always
Steps to Reproduce:
1.$operator-sdk init --domain=disconnected.com --repo=github.com/example-inc/memcached-operator 2.$cat Dockerfile # Build the manager binary FROM quay.io/olmqe/golang:1.21 AS builder ARG TARGETOS ARG TARGETARCH ........
Actual results:
$cat Dockerfile # Build the manager binary FROM quay.io/olmqe/golang:1.21 AS builder ARG TARGETOS ARG TARGETARCH ........
Expected results:
$cat Dockerfile # Build the manager binary FROM quay.io/olmqe/golang:1.22 AS builder ARG TARGETOS ARG TARGETARCH ........
Additional info:
hybrid type also meets the same problem.
- is blocked by
-
OCPBUGS-44942 OperatorSDK 1.36.1-ocp can't generate go type operator with golang 1.22
- New