From 53aa9e631f34c8545b138ea1092de58f7504e64b Mon Sep 17 00:00:00 2001 From: hzeng21 Date: Wed, 28 Feb 2024 23:12:43 -0600 Subject: [PATCH] Re enable arg helper_crd (#334) * Re-enable arg helper_crd * show helper crd path --- acto/__main__.py | 9 ++++++++- acto/engine.py | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/acto/__main__.py b/acto/__main__.py index f00cb09dac..94858e7d18 100644 --- a/acto/__main__.py +++ b/acto/__main__.py @@ -51,6 +51,13 @@ default=1, help="Number of concurrent workers to run Acto with", ) +parser.add_argument( + "--helper_crd", + dest="helper_crd", + type=str, + default="", + help="helper crd file to test on", +) parser.add_argument( "--num-cases", dest="num_cases", @@ -133,7 +140,7 @@ cluster_runtime="KIND", preload_images_=None, context_file=context_cache, - helper_crd=None, + helper_crd=args.helper_crd, num_workers=args.num_workers, num_cases=args.num_cases, dryrun=args.dryrun, diff --git a/acto/engine.py b/acto/engine.py index 665b877865..5f963fee35 100644 --- a/acto/engine.py +++ b/acto/engine.py @@ -952,7 +952,7 @@ def __learn(self, context_file, helper_crd, analysis_only=False): if deployed: break apiclient = kubernetes_client(learn_kubeconfig, learn_context_name) - + logger.debug("helper crd path is %s", helper_crd) self.context["crd"] = process_crd( apiclient, KubectlClient(learn_kubeconfig, learn_context_name),