@when('cdk-addons.configured', 'kube-api-endpoint.available', 'kube-control.connected')
def idle_status(kube_api, kube_control):
    ' Signal at the end of the run that we are running. '
    if (not all_kube_system_pods_running()):
        hookenv.status_set('waiting', 'Waiting for kube-system pods to start')
    elif (hookenv.config('service-cidr') != service_cidr()):
        msg = ('WARN: cannot change service-cidr, still using ' + service_cidr())
        hookenv.status_set('active', msg)
    else:
        failing_services = master_services_down()
        if (len(failing_services) == 0):
            hookenv.status_set('active', 'Kubernetes master running.')
        else:
            msg = 'Stopped services: {}'.format(','.join(failing_services))
            hookenv.status_set('blocked', msg)
Signal at the end of the run that we are running.
@when('cdk-addons.configured', 'kube-api-endpoint.available', 'kube-control.connected')
def idle_status(kube_api, kube_control):
    '  '
    if (not all_kube_system_pods_running()):
        hookenv.status_set('waiting', 'Waiting for kube-system pods to start')
    elif (hookenv.config('service-cidr') != service_cidr()):
        msg = ('WARN: cannot change service-cidr, still using ' + service_cidr())
        hookenv.status_set('active', msg)
    else:
        failing_services = master_services_down()
        if (len(failing_services) == 0):
            hookenv.status_set('active', 'Kubernetes master running.')
        else:
            msg = 'Stopped services: {}'.format(','.join(failing_services))
            hookenv.status_set('blocked', msg)