Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-44941

OperatorSDK 1.36.1should use golang1.22 for go type operator

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 4.17
    • Operator SDK
    • None
    • Moderate
    • None
    • Rejected
    • False
    • Hide

      None

      Show
      None

      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.

              rh-ee-arsen Arkadeep Sen
              rhn-support-jfan Jia Fan
              Jia Fan Jia Fan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: