fix(core): update
This commit is contained in:
parent
2bac880cde
commit
195b326e61
@ -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);
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user