Skip to content

Commit 6e56ebe

Browse files
authored
Merge pull request #269 from silasbw/fix0
Fix examples
2 parents e86ab65 + 398d624 commit 6e56ebe

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

examples/cache-example.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const k8s = require('@kubernetes/client-node');
33
const kc = new k8s.KubeConfig();
44
kc.loadFromDefault();
55

6-
const k8sApi = kc.makeApiClient(k8s.Core_v1Api);
6+
const k8sApi = kc.makeApiClient(k8s.CoreV1Api);
77

88
const path = '/api/v1/namespaces/default/pods';
99
const watch = new k8s.Watch(kc);
@@ -30,4 +30,4 @@ const looper = () => {
3030
setTimeout(looper, 2000);
3131
}
3232

33-
looper();
33+
looper();

examples/example.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const k8s = require('@kubernetes/client-node');
33
const kc = new k8s.KubeConfig();
44
kc.loadFromDefault();
55

6-
const k8sApi = kc.makeApiClient(k8s.Core_v1Api);
6+
const k8sApi = kc.makeApiClient(k8s.CoreV1Api);
77

88
k8sApi.listNamespacedPod('default')
99
.then((res) => {

examples/in-cluster.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const k8s = require('@kubernetes/client-node');
33
const kc = new k8s.KubeConfig();
44
kc.loadFromCluster();
55

6-
const k8sApi = kc.makeApiClient(k8s.Core_v1Api);
6+
const k8sApi = kc.makeApiClient(k8s.CoreV1Api);
77

88
k8sApi.listNamespacedPod('default')
99
.then((res) => {

examples/namespace.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const k8s = require('@kubernetes/client-node');
33
const kc = new k8s.KubeConfig();
44
kc.loadFromDefault();
55

6-
const k8sApi = kc.makeApiClient(k8s.Core_v1Api);
6+
const k8sApi = kc.makeApiClient(k8s.CoreV1Api);
77

88
var namespace = {
99
metadata: {

examples/typescript/simple/example.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import k8s = require('@kubernetes/client-node');
22
const kc = new k8s.KubeConfig();
33
kc.loadFromDefault();
44

5-
const k8sApi = kc.makeApiClient(k8s.Core_v1Api);
5+
const k8sApi = kc.makeApiClient(k8s.CoreV1Api);
66

77
k8sApi.listNamespacedPod('default')
88
.then((res) => {

examples/yaml-example.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const fs = require('fs');
44
const kc = new k8s.KubeConfig();
55
kc.loadFromDefault();
66

7-
const k8sApi = kc.makeApiClient(k8s.Core_v1Api);
7+
const k8sApi = kc.makeApiClient(k8s.CoreV1Api);
88

99
const yamlString = k8s.dumpYaml({
1010
metadata: {

0 commit comments

Comments
 (0)