Commit 73ba8ac8 authored by Adrian Pino's avatar Adrian Pino Committed by GitHub
Browse files

Merge pull request #138 from SunriseOpenOperatorPlatform/feature/k8s-hotfix

Add Kubernetes EdgeCloud adapter
parents 9f4ffa7f e8b730c5
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -45,6 +45,7 @@ jupyter_client==8.6.3
jupyter_core==5.8.1
jupyterlab_pygments==0.3.0
keyring==25.6.0
kubernetes==33.1.0
markdown-it-py==3.0.0
MarkupSafe==3.0.2
matplotlib-inline==0.1.7
@@ -80,6 +81,7 @@ pydantic_core==2.33.1
pydub==0.25.1
pyflakes==3.2.0
Pygments==2.19.1
pymongo==4.13.2
pyproject_hooks==1.2.0
pytest==8.3.2
pytest-cov==6.0.0
+4 −6
Original line number Diff line number Diff line
# -*- coding: utf-8 -*-
##
# Copyright 2025-present by Software Networks Area, i2CAT.
# All rights reserved.
#
# This file is part of the Open SDK
#
# Contributors:
@@ -15,6 +12,9 @@ from sunrise6g_opensdk.edgecloud.adapters.aeros.client import (
from sunrise6g_opensdk.edgecloud.adapters.i2edge.client import (
    EdgeApplicationManager as I2EdgeClient,
)
from sunrise6g_opensdk.edgecloud.adapters.kubernetes.client import (
    EdgeApplicationManager as kubernetesClient,
)
from sunrise6g_opensdk.network.adapters.oai.client import (
    NetworkManager as OaiCoreClient,
)
@@ -25,8 +25,6 @@ from sunrise6g_opensdk.network.adapters.open5gs.client import (
    NetworkManager as Open5GSClient,
)

# from sunrise6g_opensdk.edgecloud.adapters.kubernetes.client import EdgeApplicationManager as kubernetesClient


def _edgecloud_adapters_factory(client_name: str, base_url: str, **kwargs):
    if client_name == "i2edge":
@@ -36,7 +34,7 @@ def _edgecloud_adapters_factory(client_name: str, base_url: str, **kwargs):
    edge_cloud_factory = {
        "aeros": lambda url, **kw: AerosClient(base_url=url, **kw),
        "i2edge": lambda url, **kw: I2EdgeClient(base_url=url, **kw),
        # "kubernetes": lambda url: kubernetesClient(base_url=url), Uncomment when import issues are solved
        "kubernetes": lambda url, **kw: kubernetesClient(base_url=url, **kw),
    }
    try:
        return edge_cloud_factory[client_name](base_url, **kwargs)
+0 −3
Original line number Diff line number Diff line
# -*- coding: utf-8 -*-
##
# Copyright 2025-present by Software Networks Area, i2CAT.
# All rights reserved.
#
# This file is part of the Open SDK
#
# Contributors:
+0 −3
Original line number Diff line number Diff line
# -*- coding: utf-8 -*-
##
# Copyright 2025-present by Software Networks Area, i2CAT.
# All rights reserved.
#
# This file is part of the Open SDK
#
# Contributors:
+0 −3
Original line number Diff line number Diff line
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
##
# Copyright 2025-present by Software Networks Area, i2CAT.
# All rights reserved.
#
# This file is part of the Open SDK
#
# Contributors:
Loading