Skip to content

Commit

Permalink
Fix example code in README.
Browse files Browse the repository at this point in the history
  • Loading branch information
brendandburns committed Jun 10, 2019
1 parent 4836131 commit 0752e69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const k8s = require('@kubernetes/client-node');
const kc = new k8s.KubeConfig();
kc.loadFromDefault();

const k8sApi = kc.makeApiClient(k8s.Core_v1Api);
const k8sApi = kc.makeApiClient(k8s.CoreV1Api);

k8sApi.listNamespacedPod('default').then((res) => {
console.log(res.body);
Expand All @@ -45,7 +45,7 @@ const k8s = require('@kubernetes/client-node');
const kc = new k8s.KubeConfig();
kc.loadFromDefault();

const k8sApi = kc.makeApiClient(k8s.Core_v1Api);
const k8sApi = kc.makeApiClient(k8s.CoreV1Api);

var namespace = {
metadata: {
Expand Down Expand Up @@ -95,7 +95,7 @@ kc.loadFromOptions({
contexts: [context],
currentContext: context.name,
});
const k8sApi = kc.makeApiClient(k8s.Core_v1Api);
const k8sApi = kc.makeApiClient(k8s.CoreV1Api);
...
```

Expand Down

0 comments on commit 0752e69

Please sign in to comment.