예제 #1
0
def dashboard_get_overview(kubeconfig,
                           namespace,
                           bin_path=settings.DASHBOARD_CTL_BIN):
    dashboard_client = make_dashboard_ctl_client(kubeconfig=kubeconfig,
                                                 bin_path=bin_path)
    dashboard_overview = dashboard_client.overview(namespace=namespace,
                                                   parameters=dict())
    return dashboard_overview
예제 #2
0
파일: utils.py 프로젝트: L00J/bk-bcs-saas
def dashboard_get_overview(kubeconfig, namespace):
    dashboard_client = make_dashboard_ctl_client(
        kubeconfig=kubeconfig
    )
    dashboard_overview = dashboard_client.overview(
        namespace=namespace,
        parameters=dict()
    )
    return dashboard_overview