Skip to content

Commit

Permalink
Re enable arg helper_crd (#334)
Browse files Browse the repository at this point in the history
* Re-enable arg helper_crd

* show helper crd path
  • Loading branch information
312hzeng authored Feb 29, 2024
1 parent 09746d0 commit 53aa9e6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion acto/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion acto/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 53aa9e6

Please sign in to comment.