Repository navigation
Description
Describe the bug
The Kagenti UI will not accept Dockerfiles that don't come from public repos, even if they have been explicitly loaded using kind load.
For example, the image "mcp-test2" built locally.
Steps To Reproduce
To reproduce, go to http://kagenti-ui.localtest.me:8080/Import_New_Tool and Deploy from Existing Image.
For the image, choose mcp-test2.
The UI displays a traceback:
ValueError: URL must contain at least a repo and image name
Traceback:
File "/app/.venv/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 121, in exec_func_with_error_handling
result = func()
^^^^^^
File "/app/.venv/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 643, in code_to_exec
_mpa_v1(self._main_script_path)
File "/app/.venv/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 164, in _mpa_v1
page.run()
File "/app/.venv/lib/python3.12/site-packages/streamlit/navigation/page.py", line 297, in run
exec(code, module.__dict__)
File "/app/pages/04_Import_New_Agent.py", line 39, in <module>
render_import_form(
File "/app/lib/build_utils.py", line 1714, in render_import_form
_repo, resource_name, _tag = parse_image_url(docker_image_url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/lib/build_utils.py", line 1875, in parse_image_url
raise ValueError("URL must contain at least a repo and image name")
Expected Behavior
Should container images need hosts? Perhaps this error is OK. However, it is frustrating to have a local registry used by Kind and a Kagenti registry, but need to use an external container repo.
Additional Context
I have pushed two small container images to my Quay.io account. The Quay.io web UI https://quay.io/user/esnible_ibm/billing says "You are using more private repositories than your plan allows. Please upgrade your subscription to avoid disruptions in your service.". I am not sure how to increase my quota.
Activity
[-]bug: URL must contain at least a repo and image name[/-][+]bug: Container image URL must contain at least a repo and image name[/+]cwiklik commentedon Oct 29, 2025
@esnible, I am thinking how to address this problem. If the http://github.com (or https://github.com) prefix is missing then assume the image is in local registry, otherwise its a remote image repo?
esnible commentedon Oct 30, 2025
@cwiklik The K8s documentation says https://kubernetes.io/docs/concepts/containers/images/#image-names that the registry hostname is optional. All we do with image name is pass it down when creating the Depoyment that goes to Kubernetes. We should allow any name that K8s allows.
If the user chooses to use an image name such as
busyboxand that image isn't present, it is up to the cluster admin to deal with it. We shouldn't restrict Kagenti's UI.pdettori commentedon Oct 30, 2025
I agree with @esnible - we should allow whatever kubernetes pods / deployments etc. allow for images.