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

`availableUpdates: null` results in run-time error on Cluster Settings page

XMLWordPrintable

    • None
    • Proposed
    • False
    • Hide

      None

      Show
      None

      This is a clone of issue OCPBUGS-6053. The following is the description of the original issue:
      —
      Description of problem:

      When a ClusterVersion's `status.availableUpdates` has a value of `null` and `Upgradeable=False`, a run time error occurs on the Cluster Settings page as the UpdatesGraph component expects `status.availableUpdates` to have a non-empty value.

      Steps to Reproduce:

      1.  Add the following overrides to ClusterVersion config (/k8s/cluster/config.openshift.io~v1~ClusterVersion/version)
      
      spec:
        overrides:
          - group: apps
            kind: Deployment
            name: console-operator
            namespace: openshift-console-operator
            unmanaged: true    
          - group: rbac.authorization.k8s.io
            kind: ClusterRole
            name: console-operator
            namespace: ''
            unmanaged: true
      2.  Visit /settings/cluster and note the run-time error (see attached screenshot) 

      Actual results:

      An error occurs.

      Expected results:

      The contents of the Cluster Settings page render.

              jhadvig@redhat.com Jakub Hadvig
              openshift-crt-jira-prow OpenShift Prow Bot
              Xiyun Zhao Xiyun Zhao
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: