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 af8ca0f commit 44689d0Copy full SHA for 44689d0
src/warnet/k8s.py
@@ -81,9 +81,11 @@ def get_pod_exit_status(pod_name, namespace: Optional[str] = None):
81
return None
82
83
84
-def get_edges() -> any:
+def get_edges(namespace: Optional[str] = None) -> any:
85
+ if not namespace:
86
+ namespace = get_default_namespace()
87
sclient = get_static_client()
- configmap = sclient.read_namespaced_config_map(name="edges", namespace="warnet")
88
+ configmap = sclient.read_namespaced_config_map(name="edges", namespace=namespace)
89
return json.loads(configmap.data["data"])
90
91
0 commit comments