Skip to content

Commit 6550851

Browse files
committed
namespaces: remove kubectl
1 parent 1cf5842 commit 6550851

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/warnet/namespaces.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,11 @@ def destroy(destroy_all: bool, namespace: str):
5656
sclient: CoreV1Api = get_static_client()
5757
if destroy_all:
5858
all_namespaces = sclient.list_namespace()
59-
warnet_namespaces = [ns.metadata.name for ns in all_namespaces.items
60-
if ns.metadata.name.startswith("warnet-")]
59+
warnet_namespaces = [
60+
ns.metadata.name
61+
for ns in all_namespaces.items
62+
if ns.metadata.name.startswith("warnet-")
63+
]
6164

6265
if not warnet_namespaces:
6366
print("No warnet namespaces found to destroy.")

0 commit comments

Comments
 (0)