File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ const k8s = require('@kubernetes/client-node');
3030const kc = new k8s.KubeConfig ();
3131kc .loadFromDefault ();
3232
33- const k8sApi = kc .makeApiClient (k8s .Core_v1Api );
33+ const k8sApi = kc .makeApiClient (k8s .CoreV1Api );
3434
3535k8sApi .listNamespacedPod (' default' ).then ((res ) => {
3636 console .log (res .body );
@@ -45,7 +45,7 @@ const k8s = require('@kubernetes/client-node');
4545const kc = new k8s.KubeConfig ();
4646kc .loadFromDefault ();
4747
48- const k8sApi = kc .makeApiClient (k8s .Core_v1Api );
48+ const k8sApi = kc .makeApiClient (k8s .CoreV1Api );
4949
5050var namespace = {
5151 metadata: {
@@ -95,7 +95,7 @@ kc.loadFromOptions({
9595 contexts: [context],
9696 currentContext: context .name ,
9797});
98- const k8sApi = kc .makeApiClient (k8s .Core_v1Api );
98+ const k8sApi = kc .makeApiClient (k8s .CoreV1Api );
9999...
100100```
101101
You can’t perform that action at this time.
0 commit comments