From a5241f805126663167c3e9caa183670a5e91bdf1 Mon Sep 17 00:00:00 2001 From: Emmanuel Yusufu Kimaswa Date: Thu, 28 May 2026 15:12:56 +0300 Subject: [PATCH] docs: fix readNamespace/deleteNamespace calls in README example The exported CoreV1Api is the object-parameter API, so its methods take a single request object. The "Create a namespace" example already uses createNamespace({ body }) correctly, but readNamespace and deleteNamespace are still called with a bare string, which doesn't match the current signature (readNamespace(param: CoreV1ApiReadNamespaceRequest) and deleteNamespace(param: CoreV1ApiDeleteNamespaceRequest), both requiring { name }). Update them to pass { name }. Signed-off-by: Emmanuel Yusufu Kimaswa --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b122d2fc205..68c529b64ba 100644 --- a/README.md +++ b/README.md @@ -52,9 +52,9 @@ k8sApi.createNamespace({ body: namespace }).then( (response) => { console.log('Created namespace'); console.log(response); - k8sApi.readNamespace(namespace.metadata.name).then((response) => { + k8sApi.readNamespace({ name: namespace.metadata.name }).then((response) => { console.log(response); - k8sApi.deleteNamespace(namespace.metadata.name, {} /* delete options */); + k8sApi.deleteNamespace({ name: namespace.metadata.name }); }); }, (err) => {