diff --git a/ts/index.ts b/ts/index.ts index 383c74b..4a92275 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -3,8 +3,8 @@ import * as plugins from './kubernetes.plugins'; const kc = new plugins.kubectl.KubeConfig(); kc.loadFromDefault(); -const k8sApi = kc.makeApiClient(k8s.CoreV1Api); +const k8sApi = kc.makeApiClient(plugins.kubectl.CoreV1Api); k8sApi.listNamespacedPod('default').then((res) => { console.log(res.body); -}); \ No newline at end of file +});