Uploaded image for project: 'Red Hat OpenShift Data Science'
  1. Red Hat OpenShift Data Science
  2. RHODS-6172

ImageStreams Require Optional Annotations Object

XMLWordPrintable

    • False
    • None
    • False
    • Testable
    • No
    • 1.22.0-2
    • No
    • No
    • Pending
    • None
    • RHODS 1.22

      Description of problem:

      Our code assumes that all image streams will have at least one annotations but the k8s type does not make this guarantee. If the image stream has zero annotations (thus not having `metadata.annotations` at all) our code does not handle that gracefully.

      Prerequisites (if any, like setup, operators/versions):

      Steps to Reproduce

      1. Create a custom image stream and make sure it has no annotations on it
      2. Try to render the UI (Jupyter application or likely the DS Projects create Workbench)

      Actual results:

      The UI crashes loading components.

      Expected results:

      Should render the UI and show the Jupyter UI

      Reproducibility (Always/Intermittent/Only Once):

      Build Details:

      1.19 Production

      Workaround:

      Create any annotation on the image stream to stop the error from happening.

      eg: Patch `opendatahub.io/test: 'test'` into the image stream just to create that property in the k8s object.

      Additional info:

            juntwang@redhat.com Juntao Wang
            aballantyne Andrew Ballantyne
            Luca Giorgi Luca Giorgi
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: