From 6dfcf0bd24b9345920af2138164505fdc6316d8a Mon Sep 17 00:00:00 2001 From: Mark Zhang <46978338+MarkintoshZ@users.noreply.github.com> Date: Mon, 30 Oct 2023 10:54:09 -0500 Subject: [PATCH] Fix reproduce command exception on missing acto namespace (#270) * Fix reproduce command exception on missing acto namespace * Revert "Fix reproduce command exception on missing acto namespace" This reverts commit af14415b8fb3b3ce6e3a4846b1f4fe8c7f99b02f. * Add acto namespace args to reproduce module --- acto/reproduce.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/acto/reproduce.py b/acto/reproduce.py index a633b673da..5793947435 100644 --- a/acto/reproduce.py +++ b/acto/reproduce.py @@ -205,6 +205,11 @@ def reproduce_postdiff(workdir_path: str, operator_config: OperatorConfig, acto_ dest='cluster_runtime', default="KIND", help='Cluster runtime for kubernetes, can be KIND (Default), K3D or MINIKUBE') + parser.add_argument( + '--acto-namespace', + dest='acto_namespace', + default=0, + help='Kubernetes namespace for acto') parser.add_argument('--context', dest='context', help='Cached context data') args = parser.parse_args() @@ -215,5 +220,6 @@ def reproduce_postdiff(workdir_path: str, operator_config: OperatorConfig, acto_ reproduce(workdir_path=workdir_path, reproduce_dir=args.reproduce_dir, operator_config=args.config, + acto_namespace=args.acto_namespace, cluster_runtime=args.cluster_runtime) - end_time = datetime.now() \ No newline at end of file + end_time = datetime.now()