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

Suggest the example 'go.mod' file match the operator-sdk version

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • None
    • 4.14.z, 4.15
    • None
    • Low
    • No
    • 1
    • OSDOCS Sprint 250
    • 1
    • False
    • Hide

      None

      Show
      None
    • Release Note Not Required

      Document URL:

      https://docs.openshift.com/container-platform/4.15/operators/operator_sdk/osdk-generating-csvs.html#osdk-operatorconditions_osdk-generating-csvs

      Section Number and Name: 

      Procedure --> To enable Operator conditions in your Operator project: --> 1.In the go.mod file of your Operator project, add operator-framework/operator-lib as a required library:

      Describe the issue: 

      The example go.mod file is:
      '''''''''''''''''''''''''''''''''''''
      module github.com/example-inc/memcached-operator
      
      go 1.15
      
      require (
        k8s.io/apimachinery v0.19.2
        k8s.io/client-go v0.19.2
        sigs.k8s.io/controller-runtime v0.7.0
        operator-framework/operator-lib v0.3.0
      ) 
      '''''''''''''''''''''''''''''''''''
      
      but the operator-sdk 4.15 support the go.mod file should be like:
      
      '''''''''''''''''''''''''''''''''''''
      module github.com/example-inc/memcached-operator
      
      go 1.19
      
      require (
          k8s.io/apimachinery v0.26.0
          k8s.io/client-go v0.26.0
          sigs.k8s.io/controller-runtime v0.14.1
          operator-framework/operator-lib v0.11.0 
      )
      '''''''''''''''''''''''''''''''''''

              rhn-support-mipeter Michael Peter
              rhn-support-jfan Jia Fan
              Jia Fan Jia Fan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: