From 175a6d52277d321a93310dbe78d81a4ff68d2a10 Mon Sep 17 00:00:00 2001 From: Jack Lucas Date: Fri, 19 Apr 2019 15:14:25 -0400 Subject: Fix DR subscriber failure Issue-ID: DCAEGEN2-1009 Change-Id: Ieb770b6562123dda78fd4b8c8c514d30767ad7fb Signed-off-by: Jack Lucas --- k8s/k8sclient/__init__.py | 2 +- k8s/k8sclient/k8sclient.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'k8s/k8sclient') diff --git a/k8s/k8sclient/__init__.py b/k8s/k8sclient/__init__.py index 3cc19f2..6a53440 100644 --- a/k8s/k8sclient/__init__.py +++ b/k8s/k8sclient/__init__.py @@ -17,4 +17,4 @@ # ============LICENSE_END========================================================= # # ECOMP is a trademark and service mark of AT&T Intellectual Property. -from .k8sclient import deploy, undeploy, is_available, scale, upgrade, rollback, execute_command_in_deployment \ No newline at end of file +from .k8sclient import deploy, undeploy, is_available, scale, upgrade, rollback, execute_command_in_deployment, parse_ports \ No newline at end of file diff --git a/k8s/k8sclient/k8sclient.py b/k8s/k8sclient/k8sclient.py index f8a9ecc..681ea6b 100644 --- a/k8s/k8sclient/k8sclient.py +++ b/k8s/k8sclient/k8sclient.py @@ -237,7 +237,7 @@ def _create_service_object(service_name, component_name, service_ports, annotati ) return service -def _parse_ports(port_list): +def parse_ports(port_list): ''' Parse the port list into a list of container ports (needed to create the container) and to a set of port mappings to set up k8s services. @@ -425,7 +425,7 @@ def deploy(namespace, component_name, image, replicas, always_pull, k8sconfig, r ext = client.ExtensionsV1beta1Api() # Parse the port mapping - container_ports, port_map = _parse_ports(kwargs.get("ports", [])) + container_ports, port_map = parse_ports(kwargs.get("ports", [])) # Parse the volumes list into volumes and volume_mounts for the deployment volumes, volume_mounts = _parse_volumes(kwargs.get("volumes",[])) -- cgit 1.2.3-korg