diff --git a/mlrun/api/api/endpoints/frontend_spec.py b/mlrun/api/api/endpoints/frontend_spec.py index d82b833e7b89..c9384fd4c8e0 100644 --- a/mlrun/api/api/endpoints/frontend_spec.py +++ b/mlrun/api/api/endpoints/frontend_spec.py @@ -47,6 +47,7 @@ def get_frontend_spec( function_deployment_mlrun_command=mlrun.builder.resolve_mlrun_install_command(), auto_mount_type=config.storage.auto_mount_type, auto_mount_params=config.get_storage_auto_mount_params(), + default_artifact_path=config.artifact_path, ) diff --git a/mlrun/api/schemas/frontend_spec.py b/mlrun/api/schemas/frontend_spec.py index adb9719a4f65..08b2d7b28139 100644 --- a/mlrun/api/schemas/frontend_spec.py +++ b/mlrun/api/schemas/frontend_spec.py @@ -32,3 +32,4 @@ class FrontendSpec(pydantic.BaseModel): function_deployment_mlrun_command: typing.Optional[str] auto_mount_type: typing.Optional[str] auto_mount_params: typing.Dict[str, str] = {} + default_artifact_path: str diff --git a/tests/api/api/test_frontend_spec.py b/tests/api/api/test_frontend_spec.py index 23c796b12f4f..f2a117e2a573 100644 --- a/tests/api/api/test_frontend_spec.py +++ b/tests/api/api/test_frontend_spec.py @@ -39,6 +39,7 @@ def test_get_frontend_spec( ) assert frontend_spec.default_function_image_by_kind is not None assert frontend_spec.function_deployment_mlrun_command is not None + assert frontend_spec.default_artifact_path is not None # fields UI expects to be in the template assert ( mlrun.mlconf.httpdb.builder.docker_registry