Commit 3d001274 authored by Paris Stentoumis's avatar Paris Stentoumis
Browse files

fix: added exposedInterfaces dict on artefact

parent b4b5faee
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -312,6 +312,8 @@ def create_app_instance():
            image_path = app_repo.get("imagePath")
            repo_type = app_repo.get("type", "PUBLICREPO")
            component_specs = appData.get("componentSpec", [])
            networkInterface = component_specs[0].get("networkInterfaces")[0]

            component_name = None
            if component_specs and isinstance(component_specs, list):
                component_name = component_specs[0].get("componentName")
@@ -398,7 +400,15 @@ def create_app_instance():
                            "cpuArchType": "ISA_X86_64",
                            "numCPU": "100m",
                            "memory": 128
                        },
                        "exposedInterfaces": [
                            {
                            "commPort": networkInterface.get("port", ""),
                            "commProtocol": networkInterface.get("protocol", ""),
                            "interfaceId": networkInterface.get("interfaceId", "interfaceId0"),
                            "visibilityType": networkInterface.get("visibilityType", "")
                            }
                        ]
                    }
                ]
            }