def parse_hostnames_from_ingresses(ingress_list):
    """
    This function parses a list of Ingress objects into a map of hostname=>address
    """
    hostnames = {}
    for ingress in ingress_list:
        rules = ingress.spec.rules
        if ingress.status.load_balancer.ingress is None:
            continue
        address = ingress.status.load_balancer.ingress[0].ip
        for rule in rules:
            host = rule.host
            hostnames[host] = address
    return hostnames