Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Fix list all pods example code for current client version
  • Loading branch information
BassT authored Jan 7, 2025
1 parent c259450 commit 57b1090
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ kc.loadFromDefault();

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

k8sApi.listNamespacedPod('default').then((res) => {
console.log(res.body);
k8sApi.listNamespacedPod({ namespace: 'default' }).then((res) => {
console.log(res);
});
```

Expand Down

0 comments on commit 57b1090

Please sign in to comment.