File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -77,14 +77,14 @@ def stop(scenario_name):
77
77
def stop_scenario (scenario_name ):
78
78
"""Stop a single scenario using Helm"""
79
79
# Stop the pod immediately (faster than uninstalling)
80
- cmd = f"kubectl delete pod { scenario_name } --grace-period=0 --force"
80
+ namespace = get_default_namespace ()
81
+ cmd = f"kubectl --namespace { namespace } delete pod { scenario_name } --grace-period=0 --force"
81
82
if stream_command (cmd ):
82
83
console .print (f"[bold green]Successfully stopped scenario: { scenario_name } [/bold green]" )
83
84
else :
84
85
console .print (f"[bold red]Failed to stop scenario: { scenario_name } [/bold red]" )
85
86
86
87
# Then uninstall via helm (non-blocking)
87
- namespace = get_default_namespace ()
88
88
command = f"helm uninstall { scenario_name } --namespace { namespace } --wait=false"
89
89
90
90
# Run the helm uninstall command in the background
You can’t perform that action at this time.
0 commit comments