Skip to content

Commit c7d2341

Browse files
authored
Merge pull request #2508 from kyoungbinkim/patch-1
Refactor: example.js
2 parents f137c94 + 8e35b48 commit c7d2341

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/example.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ kc.loadFromDefault();
88
const k8sApi = kc.makeApiClient(k8s.CoreV1Api);
99

1010
const main = async () => {
11-
const res = await k8sApi.listNamespacedPod(namespace);
11+
const res = await k8sApi.listNamespacedPod({namespace});
1212

13-
console.log(`${namespace} namespace pods: `, res.body);
13+
console.log(`${namespace} namespace pods: `, res.items);
1414
};
1515

1616
main();

0 commit comments

Comments
 (0)