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

OLM details page crashes on incomplete ClusterServiceVersion resource

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • 4.9.z
    • 4.12.z
    • Dev Console
    • None
    • Low
    • None
    • ODC Sprint 231
    • 1
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • Hide
      * Previously due to a missing definition for `spec.provider`, the *Operator details* page failed when trying to show `ClusterServiceVersion`. With this update, the user interface works without `spec.provider` and the *Operator details* page does not fail. (link:https://issues.redhat.com/browse/OCPBUGS-6694[*OCPBUGS-6694*])
      Show
      * Previously due to a missing definition for `spec.provider`, the *Operator details* page failed when trying to show `ClusterServiceVersion`. With this update, the user interface works without `spec.provider` and the *Operator details* page does not fail. (link: https://issues.redhat.com/browse/OCPBUGS-6694 [* OCPBUGS-6694 *])
    • Bug Fix
    • Done

      Description of problem:
      When creating a incomplete ClusterServiceVersion resource the OLM details page crashes (on 4.11).

      apiVersion: operators.coreos.com/v1alpha1
      kind: ClusterServiceVersion
      metadata:
        name: minimal-csv
        namespace: christoph
      spec:
        apiservicedefinitions:
          owned:
            - group: A
              kind: A
              name: A
              version: v1
        customresourcedefinitions:
          owned:
            - kind: B
              name: B
              version: v1
        displayName: My minimal CSV
        install:
          strategy: ''
      

      Version-Release number of selected component (if applicable):
      Crashes on 4.8-4.11, work fine from 4.12 onwards.

      How reproducible:
      Alway

      Steps to Reproduce:
      1. Apply the ClusterServiceVersion YAML from above
      2. Open the Admin perspective > Installed Operator > Operator detail page

      Actual results:
      Details page crashes on tab A and B.

      Expected results:
      Page should not crash

      Additional info:
      Thi is a follow up on https://bugzilla.redhat.com/show_bug.cgi?id=2084287

            cjerolim Christoph Jerolimov
            cjerolim Christoph Jerolimov
            Sanket Pathak Sanket Pathak
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: