Пример #1
0
def delete(args):
    if len(args.number) == 0:
        if args.obliterate_disk:
            raise ValueError("you must explicitly specify the nodes when using --obliterate-disk")
        args.number = all_node_numbers()
    for number in args.number:
        deployment_name = "{name}{number}".format(name=NAME, number=number)
        util.stop_deployment(deployment_name)
    if args.obliterate_disk and args.number:
        context = util.get_cluster_prefix()
        namespace = util.get_current_namespace()
        what = "%s-%s"%(context, namespace)
        if args.obliterate_disk == what:
            delete_persistent_disks(context, namespace, args.number)
        else:
            raise ValueError("to obliterate the disk you must do --obliterate-disk=%s"%what)
Пример #2
0
def delete(args):
    if len(args.number) == 0:
        if args.obliterate_disk:
            raise ValueError(
                "you must explicitly specify the nodes when using --obliterate-disk"
            )
        args.number = all_node_numbers()
    for number in args.number:
        deployment_name = "{name}{number}".format(name=NAME, number=number)
        util.stop_deployment(deployment_name)
    if args.obliterate_disk and args.number:
        context = util.get_cluster_prefix()
        namespace = util.get_current_namespace()
        what = "%s-%s" % (context, namespace)
        if args.obliterate_disk == what:
            delete_persistent_disks(context, namespace, args.number)
        else:
            raise ValueError(
                "to obliterate the disk you must do --obliterate-disk=%s" %
                what)
Пример #3
0
def stop_on_kubernetes(args):
    util.stop_deployment(NAME)
Пример #4
0
def delete(args):
    util.stop_deployment(NAME)
    delete_kubectl_secret()
Пример #5
0
def delete(args):
    util.stop_deployment(NAME)
    delete_kubectl_secret()
Пример #6
0
def delete(args):
    util.stop_deployment(NAME)
Пример #7
0
def delete(args):
    validate_project_ids(args)
    util.stop_deployment("project-" + args.project_id)
Пример #8
0
def stop_on_kubernetes(args):
    util.stop_deployment(NAME)
Пример #9
0
def delete(args):
    delete_services()
    if len(args.number) == 0:
        args.number = all_node_numbers()
    for number in args.number:
        util.stop_deployment('{NAME}{number}'.format(NAME=NAME, number=number))
Пример #10
0
def delete(args):
    validate_project_ids(args)
    util.stop_deployment("project-" + args.project_id)
Пример #11
0
def delete(args):
    delete_services()
    if len(args.number) == 0:
        args.number = all_node_numbers()
    for number in args.number:
        util.stop_deployment('{NAME}{number}'.format(NAME=NAME, number=number))
Пример #12
0
def delete(args):
    if len(args.number) == 0:
        args.number = all_node_numbers()
    for number in args.number:
        util.stop_deployment('{NAME}{number}'.format(NAME=NAME, number=number))
        deployment_name = "{name}{number}".format(name=NAME, number=number)
Пример #13
0
def delete(args):
    util.stop_deployment(NAME)