@when('kubernetes-master.components.started')
def configure_cdk_addons():
    ' Configure CDK addons '
    remove_state('cdk-addons.configured')
    dbEnabled = str(hookenv.config('enable-dashboard-addons')).lower()
    args = [('arch=' + arch()), ('dns-ip=' + get_dns_ip()), ('dns-domain=' + hookenv.config('dns_domain')), ('enable-dashboard=' + dbEnabled)]
    check_call((['snap', 'set', 'cdk-addons'] + args))
    if (not addons_ready()):
        hookenv.status_set('waiting', 'Waiting to retry addon deployment')
        remove_state('cdk-addons.configured')
        return
    set_state('cdk-addons.configured')
Configure CDK addons
@when('kubernetes-master.components.started')
def configure_cdk_addons():
    '  '
    remove_state('cdk-addons.configured')
    dbEnabled = str(hookenv.config('enable-dashboard-addons')).lower()
    args = [('arch=' + arch()), ('dns-ip=' + get_dns_ip()), ('dns-domain=' + hookenv.config('dns_domain')), ('enable-dashboard=' + dbEnabled)]
    check_call((['snap', 'set', 'cdk-addons'] + args))
    if (not addons_ready()):
        hookenv.status_set('waiting', 'Waiting to retry addon deployment')
        remove_state('cdk-addons.configured')
        return
    set_state('cdk-addons.configured')