-
Bug
-
Resolution: Done
-
Critical
-
None
-
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
- Create a custom image stream and make sure it has no annotations on it
- 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.