Skip to content

Commit

Permalink
Fix example to only list from one namespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
brendandburns committed Dec 11, 2019
1 parent d262aff commit d46b16c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/typescript/informer/informer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ kc.loadFromDefault();

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

const listFn = () => k8sApi.listPodForAllNamespaces();
const listFn = () => k8sApi.listNamespacedPod('default');

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

Expand Down

0 comments on commit d46b16c

Please sign in to comment.