We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04be184 commit 7484befCopy full SHA for 7484bef
src/warnet/k8s.py
@@ -202,7 +202,9 @@ def get_default_namespace() -> str:
202
if not context_entry:
203
raise ValueError(f"Context '{current_context_name}' not found in kubeconfig.")
204
205
- namespace = context_entry["context"]["namespace"]
+ # TODO: need to setting on Warnet's "default" namespace
206
+ namespace = context_entry["context"].get("namespace", "warnet")
207
+
208
return namespace
209
210
0 commit comments