Merge pull request #50956 from Arhell/ko-api
[ko] use latest API syntax in JavaScript client examplepull/51005/head
commit
c8f641bb46
|
@ -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);
|
||||
});
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue