예제 #1
0
파일: staging.py 프로젝트: artsy/hokusai
def status(resources, pods, describe, top, filename, verbose):
    """Print Kubernetes resources in the staging context"""
    set_verbosity(verbose)
    hokusai.k8s_status(KUBE_CONTEXT,
                       resources,
                       pods,
                       describe,
                       top,
                       filename=filename)
예제 #2
0
def status(app_name, resources, pods, describe, top, verbose):
    """Print the Kubernetes resources status defined in the staging context / {APP_NAME} namespace"""
    set_verbosity(verbose)
    hokusai.k8s_status(KUBE_CONTEXT,
                       resources,
                       pods,
                       describe,
                       top,
                       namespace=clean_string(app_name),
                       yaml_file_name=app_name)
예제 #3
0
파일: review_app.py 프로젝트: artsy/hokusai
def status(app_name, resources, pods, describe, top, verbose):
    """Print the Kubernetes resources status defined in the staging context / {APP_NAME} namespace"""
    set_verbosity(verbose)
    hokusai.k8s_status(KUBE_CONTEXT,
                       resources,
                       pods,
                       describe,
                       top,
                       namespace=clean_string(app_name),
                       filename=os.path.join(CWD, HOKUSAI_CONFIG_DIR,
                                             "%s.yml" % app_name))
예제 #4
0
def status(resources, pods, describe, top, verbose):
    """Print Kubernetes resources in the production context"""
    set_verbosity(verbose)
    hokusai.k8s_status(KUBE_CONTEXT, resources, pods, describe, top)