Skip to content

Commit

Permalink
[Application] Create API Gateway by default (#5515)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomerShor committed May 14, 2024
1 parent 40a74a3 commit 6fa0bfb
Show file tree
Hide file tree
Showing 13 changed files with 358 additions and 125 deletions.
4 changes: 4 additions & 0 deletions mlrun/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,10 @@
"databricks": {
"artifact_directory_path": "/mlrun_databricks_runtime/artifacts_dictionaries"
},
"application": {
"default_sidecar_internal_port": 8050,
"default_authentication_mode": "accessKey",
},
},
# TODO: function defaults should be moved to the function spec config above
"function_defaults": {
Expand Down
2 changes: 1 addition & 1 deletion mlrun/db/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -629,8 +629,8 @@ def verify_authorization(
@abstractmethod
def store_api_gateway(
self,
project: str,
api_gateway: mlrun.common.schemas.APIGateway,
project: str = None,
):
pass

Expand Down
7 changes: 5 additions & 2 deletions mlrun/db/nopdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,8 +520,11 @@ def get_hub_item(

def store_api_gateway(
self,
project: str,
api_gateway: mlrun.runtimes.nuclio.APIGateway,
api_gateway: Union[
mlrun.common.schemas.APIGateway,
mlrun.runtimes.nuclio.api_gateway.APIGateway,
],
project: str = None,
) -> mlrun.common.schemas.APIGateway:
pass

Expand Down
1 change: 1 addition & 0 deletions mlrun/runtimes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
new_v2_model_server,
nuclio_init_hook,
)
from .nuclio.api_gateway import APIGateway
from .nuclio.application import ApplicationRuntime
from .nuclio.serving import serving_subkind
from .remotesparkjob import RemoteSparkRuntime
Expand Down
Loading

0 comments on commit 6fa0bfb

Please sign in to comment.