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

Should stop creating the catalog if the source type is not supported in OLM v1

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • None
    • 4.15.0
    • OLM / Registry
    • Moderate
    • No
    • OPECO 248
    • 1
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • N/A
    • Release Note Not Required

      Description of problem:

      The catalog is created when the soure is not supported. And the error log catalogd-controller-manager

      Version-Release number of selected component (if applicable):

      4.15.0-0.nightly-2023-11-20-045323

      How reproducible:

      always

      Steps to Reproduce:

      1.patch the olmv1
      $oc patch featuregate cluster -p '{"spec": {"featureSet": "TechPreviewNoUpgrade"}}' --type=merge
      2.create one catalog with the wrong source type
      #######
      apiVersion: catalogd.operatorframework.io/v1alpha1
      kind: Catalog
      metadata:
        name: redhat-operators-wrongtype
      spec:
        source:
          image:
            ref: registry.redhat.io/redhat/redhat-operator-index:v4.13
          type: '' 
      #######
      $oc create -f catalog-redhat-wrongtype.yaml
      catalog.catalogd.operatorframework.io/redhat-operators-wrongtype created 

      Actual results:

      1. the catalog is created at first,but it failed and the error log is shown in the catalog manager.
       $oc create -f catalog-redhat-wrongtype.yaml catalog.catalogd.operatorframework.io/redhat-operators-wrongtype created 

      Expected results:

      2. should check the source type at first and reject the create work if the source type is invalid.

      Additional info:

       

            rh-ee-bpalmer Bryce Palmer
            rhn-support-jfan Jia Fan
            Keenon Lee Keenon Lee
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: