From 57b1090588bba42bcaf81887ea8fbb8cf798cabe Mon Sep 17 00:00:00 2001 From: Sebastian Richter Date: Tue, 7 Jan 2025 14:48:04 +0100 Subject: [PATCH] Update README.md Fix list all pods example code for current client version --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }); ```