console
console copied to clipboard
OCPBUGS-29528: List of default Camel K event sources disappears when adding a custom event source
Fixes: https://issues.redhat.com/browse/OCPBUGS-29528
Analysis / Root cause: If there is any Kamelet resource created for particular namespace, then only that resource is considered by ignoring kamelets resource available in global namespace and camel k operator namespace
Solution Description:
With this change, kamelets resource from particular namespace, global namespace and camel k operator namespace are considered with unique check for metadata.uid
to avoid duplicated
Screen shots / Gifs for design review:
--- Before---
https://github.com/openshift/console/assets/102503482/c045effc-3388-43d9-a431-139072353f66
---After---
https://github.com/openshift/console/assets/102503482/9a1d818c-243f-4444-9d04-e90617219109
Unit test coverage report: NA
Test setup:
1. install global Camel K operator in operator namespace (e.g. openshift-operators)
2. list all available event sources in "default" user namespace and see all Kamelets listed as event sources/sinks
3. add a custom Kamelet custom resource to the default namespace
4. see the list of available event sources only listing the custom Kamelet and the default Kamelets are gone from that list
For example of a custom Kamelet event source: Refer comments in https://issues.redhat.com/browse/OCPBUGS-29528
Browser conformance:
- [x] Chrome
- [ ] Firefox
- [ ] Safari
- [ ] Edge