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 0055ccf commit 856c1dbCopy full SHA for 856c1db
src/warnet/k8s.py
@@ -74,9 +74,11 @@ def get_pod_exit_status(pod_name, namespace: Optional[str] = None):
74
return None
75
76
77
-def get_edges() -> any:
+def get_edges(namespace: Optional[str] = None) -> any:
78
+ if not namespace:
79
+ namespace = get_default_namespace()
80
sclient = get_static_client()
- configmap = sclient.read_namespaced_config_map(name="edges", namespace="warnet")
81
+ configmap = sclient.read_namespaced_config_map(name="edges", namespace=namespace)
82
return json.loads(configmap.data["data"])
83
84
0 commit comments