Skip to content

Commit c8f641b

Browse files
authored
Merge pull request #50956 from Arhell/ko-api
[ko] use latest API syntax in JavaScript client example
2 parents 79f600d + cdd7ad4 commit c8f641b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/ko/docs/tasks/administer-cluster/access-cluster-api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,8 @@ kc.loadFromDefault();
326326

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

329-
k8sApi.listNamespacedPod('default').then((res) => {
330-
console.log(res.body);
329+
k8sApi.listNamespacedPod({ namespace: 'default' }).then((res) => {
330+
console.log(res);
331331
});
332332
```
333333

0 commit comments

Comments
 (0)