@when('certificates.ca.available', 'certificates.client.cert.available', 'authentication.setup')
@when_not('loadbalancer.available')
def create_self_config(ca, client):
    'Create a kubernetes configuration for the master unit.'
    server = 'https://{0}:{1}'.format(hookenv.unit_get('public-address'), 6443)
    build_kubeconfig(server)
Create a kubernetes configuration for the master unit.
@when('certificates.ca.available', 'certificates.client.cert.available', 'authentication.setup')
@when_not('loadbalancer.available')
def create_self_config(ca, client):
    
    server = 'https://{0}:{1}'.format(hookenv.unit_get('public-address'), 6443)
    build_kubeconfig(server)