diff --git a/README.md b/README.md index 0f751f0458..7b8a3ec494 100644 --- a/README.md +++ b/README.md @@ -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); }); ```