def GKEWorkloadQuarantine(args: 'argparse.Namespace') -> None:
  """Trigger quarantining process for GKE workload.

  Args:
    args (argparse.Namespace): Arguments from ArgumentParser.
  """
  AssignProjectID(args)
  exempted_src_ips = None  # type: Optional[List[str]]
  if args.exempted_src_ips:
    exempted_src_ips = args.exempted_src_ips.split(',')
  forensics.QuarantineGKEWorkload(args.project, args.location, args.cluster,
                                  args.namespace, args.workload,
                                  exempted_src_ips=exempted_src_ips)
Trigger quarantining process for GKE workload.

Args:
args (argparse.Namespace): Arguments from ArgumentParser.
tools/gcp_cli.py