Merge pull request #50956 from Arhell/ko-api

[ko] use latest API syntax in JavaScript client example
pull/51005/head
Kubernetes Prow Robot 2025-05-25 17:06:35 -07:00 committed by GitHub
commit c8f641bb46
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -326,8 +326,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);
});
```