Uploaded image for project: 'MicroShift'
  1. MicroShift
  2. USHIFT-2233

microshift-olm is missing openshift-marketplace namespace

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • openshift-4.16
    • None
    • None
    • None
    • 2
    • False
    • Hide

      None

      Show
      None
    • False
    • uShift Sprint 248

      Description of problem:

      microshift-olm is missing openshift-marketplace namespace which is sort of a global namespace that allows operators to be created in other namespaces if the CatalogSource resides in it

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

       

      How reproducible:

       

      Steps to Reproduce:

      1. Create CatalogSource
      2. Create Subscription in openshift-operators namespace and reference CatalogSource's namespace in the `sourceNamespace` field
      

      Actual results:

      CatalogSource is created in openshift-operator-lifecycle-manager namespace:
      
      Subscription in openshift-operators namespace with sourceNamespace: openshift-operator-lifecycle-manager is not handled because (from its Status):
      constraints not satisfiable: no operators found from catalog operatorhubio-catalog in namespace openshift-operator-lifecycle-manager referenced by subscription my-cert-manager, subscription my-cert-manager exists

      Expected results:

      CatalogSource is created in openshift-marketplace namespace:
      
      Subscription in openshift-operators namespace with sourceNamespace: openshift-marketplace is handled correctly and the requested operator is created in openshift-operators namespace

      Additional info:

      This behavior is caused by configuration of the catalog operator, namely the --namespace openshift-marketplace option:
      https://github.com/openshift/microshift/blob/1c18ad89d7559f1ee65f64145592de84d6ff7a57/assets/optional/operator-lifecycle-manager/0000_50_olm_08-catalog-operator.deployment.yaml#L53-L54
      
      

              pmatusza@redhat.com Patryk Matuszak
              pmatusza@redhat.com Patryk Matuszak
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: