@when('loadbalancer.available', 'certificates.ca.available', 'certificates.client.cert.available', 'authentication.setup')
def loadbalancer_kubeconfig(loadbalancer, ca, client):
    hosts = loadbalancer.get_addresses_ports()
    address = hosts[0].get('public-address')
    port = hosts[0].get('port')
    server = 'https://{0}:{1}'.format(address, port)
    build_kubeconfig(server)
@when('loadbalancer.available', 'certificates.ca.available', 'certificates.client.cert.available', 'authentication.setup')
def loadbalancer_kubeconfig(loadbalancer, ca, client):
    hosts = loadbalancer.get_addresses_ports()
    address = hosts[0].get('public-address')
    port = hosts[0].get('port')
    server = 'https://{0}:{1}'.format(address, port)
    build_kubeconfig(server)