diff options
author | Jack Lucas <jflucas@research.att.com> | 2019-04-19 15:14:25 -0400 |
---|---|---|
committer | Jack Lucas <jflucas@research.att.com> | 2019-04-19 15:51:07 -0400 |
commit | 175a6d52277d321a93310dbe78d81a4ff68d2a10 (patch) | |
tree | 547fd11e46854fe28d9a57d20adaf1798fa25a75 /k8s/k8sclient/k8sclient.py | |
parent | 34dd2c9a61528cb87ecf59d031bae23cd257210a (diff) |
Fix DR subscriber failure4.0.0-ONAPdublin
Issue-ID: DCAEGEN2-1009
Change-Id: Ieb770b6562123dda78fd4b8c8c514d30767ad7fb
Signed-off-by: Jack Lucas <jflucas@research.att.com>
Diffstat (limited to 'k8s/k8sclient/k8sclient.py')
-rw-r--r-- | k8s/k8sclient/k8sclient.py | 4 |
1 files changed, 2 insertions, 2 deletions
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",[])) |