def get_ingress_ip(k8s, service_name):
    """Gets the public IP address of the service that maps to the remote
    builder."""
    service = k8s.get_service(service_name)

    try:
        return service['status']['loadBalancer']['ingress'][0]['ip']
    except __HOLE__:
        raise KubernetesError(
            'Service {} does not have an external load balancer.'.format(
                service_name))
dataset/ETHPy150Open jonparrott/noel/noel/noel/builder/remote.py/get_ingress_ip