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)
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)
def stop_on_kubernetes(args): util.stop_deployment(NAME)
def delete(args): util.stop_deployment(NAME) delete_kubectl_secret()
def delete(args): util.stop_deployment(NAME)
def delete(args): validate_project_ids(args) util.stop_deployment("project-" + args.project_id)
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))
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)