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

precaching CRD does not have resources specified

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • None
    • 4.14
    • TALM Operator
    • None
    • No
    • False
    • Hide

      None

      Show
      None

      This is a clone of issue OCPBUGS-19723. The following is the description of the original issue:

      CVP test execution is blocking 4.14 vran erratas with the following error:

      "status": {
              "results": [
                {
                  "name": "olm-crds-have-resources",
                  "log": "Loaded ClusterServiceVersion: topology-aware-lifecycle-manager.v4.14.0\n",
                  "state": "fail",
                  "errors": [
                    "Owned CRDs do not have resources specified"
                  ],
                  "creationTimestamp": null
                }
              ]
            }
      

      According to the official doc, resources is a mandatory field on CSV:

      https://docs.openshift.com/container-platform/4.13/operators/operator_sdk/osdk-generating-csvs.html#osdk-manually-defined-csv-fields_osdk-generating-csvs

      And it seems not to be present in talm precaching CRD:

      https://github.com/openshift-kni/cluster-group-upgrades-operator/blame/release-4.14/bundle/manifests/cluster-group-upgrades-operator.clusterserviceversion.yaml#L154

      The upstream test which verifies this validation is:

      https://github.com/openshift-kni/cluster-group-upgrades-operator/blob/release-4.14/bundle/tests/scorecard/config.yaml#L44

      And can be run via:

      $ make bundle
      $ operator-sdk scorecard bundle
      

            sakhoury@redhat.com Sharat Akhoury
            openshift-crt-jira-prow OpenShift Prow Bot
            Joshua Clark Joshua Clark
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: