Skip to content

Commit 2bcb2e1

Browse files
authored
Merge pull request kubernetes-client#378 from brendandburns/fix
Fix example to only list from one namespace.
2 parents d262aff + d46b16c commit 2bcb2e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/typescript/informer/informer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ kc.loadFromDefault();
66

77
const k8sApi = kc.makeApiClient(k8s.CoreV1Api);
88

9-
const listFn = () => k8sApi.listPodForAllNamespaces();
9+
const listFn = () => k8sApi.listNamespacedPod('default');
1010

1111
const informer = k8s.makeInformer(kc, '/api/v1/namespaces/default/pods', listFn);
1212

0 commit comments

Comments
 (0)