Skip to content

Commit

Permalink
Merge pull request #272 from brendandburns/master
Browse files Browse the repository at this point in the history
Fix example code in README.
  • Loading branch information
k8s-ci-robot committed Jun 10, 2019
2 parents 4836131 + 0752e69 commit 34822ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
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 34822ac

Please sign in to comment.