Skip to content

Commit b3e6a5d

Browse files
committed
special case warnet-logging
1 parent 6f13828 commit b3e6a5d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/warnet/cli/namespaces.py

+6
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ def list():
7474
if warnet_namespaces:
7575
print("Warnet namespaces:")
7676
for ns in warnet_namespaces:
77+
# TODO: this is a hack, we should rename warnet-logging to something else
78+
if ns == "warnet-logging":
79+
continue
7780
print(f"- {ns}")
7881
else:
7982
print("No warnet namespaces found.")
@@ -96,6 +99,9 @@ def destroy(destroy_all: bool, namespace: str):
9699
return
97100

98101
for ns in warnet_namespaces:
102+
# TODO: this is a hack, we should rename warnet-logging
103+
if ns == "warnet-logging":
104+
continue
99105
destroy_cmd = f"kubectl delete namespace {ns}"
100106
if not stream_command(destroy_cmd):
101107
print(f"Failed to destroy namespace: {ns}")

0 commit comments

Comments
 (0)