Skip to content

Commit 900920e

Browse files
committed
add namespace to scenario deletion
1 parent 332413b commit 900920e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/warnet/control.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def down():
133133
pods = get_pods()
134134
with console.status("[yellow]Cleaning up remaining pods...[/yellow]"):
135135
for pod in pods.items:
136-
cmd = f"kubectl delete pod --ignore-not-found=true {pod.metadata.name}"
136+
cmd = f"kubectl delete pod --ignore-not-found=true {pod.metadata.name} -n {get_default_namespace()}"
137137
if stream_command(cmd):
138138
console.print(f"[green]Deleted pod: {pod.metadata.name}[/green]")
139139
else:

0 commit comments

Comments
 (0)