@when('kube-control.auth.requested')
@when('authentication.setup')
@when('leadership.is_leader')
def send_tokens(kube_control):
    'Send the tokens to the workers.'
    kubelet_token = get_token('kubelet')
    proxy_token = get_token('kube_proxy')
    admin_token = get_token('admin')
    requests = kube_control.auth_user()
    for request in requests:
        kube_control.sign_auth_request(request[0], kubelet_token, proxy_token, admin_token)
Send the tokens to the workers.
@when('kube-control.auth.requested')
@when('authentication.setup')
@when('leadership.is_leader')
def send_tokens(kube_control):
    
    kubelet_token = get_token('kubelet')
    proxy_token = get_token('kube_proxy')
    admin_token = get_token('admin')
    requests = kube_control.auth_user()
    for request in requests:
        kube_control.sign_auth_request(request[0], kubelet_token, proxy_token, admin_token)