Skip to content

Commit 30b5ca3

Browse files
committed
Streaming Namespaced Pod for Backend Listener
1 parent a98f76c commit 30b5ca3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/operator/backend_listener.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1136,7 +1136,9 @@ def watch_events(kube_pod_list):
11361136
yield pod
11371137
refreshed_resource_state = False
11381138

1139-
for event in watcher.stream(api.list_pod_for_all_namespaces, timeout_seconds=0,
1139+
for event in watcher.stream(api.list_namespaced_pod,
1140+
namespace=config.namespace,
1141+
timeout_seconds=0,
11401142
_request_timeout=TIMEOUT_SEC,
11411143
resource_version=last_resource_version):
11421144
progress_writer.report_progress()

0 commit comments

Comments
 (0)