Comparing version 0.4.6 to 0.4.7
@@ -246,3 +246,3 @@ const spawn = require('child_process').spawn | ||
{ | ||
if( this.type !== 'replicationcontrollers' ) | ||
if( this.type !== 'replicationcontrollers' && this.type !== 'deployments' ) | ||
throw new Error('not a function') | ||
@@ -249,0 +249,0 @@ |
{ | ||
"name": "k8s", | ||
"version": "0.4.6", | ||
"version": "0.4.7", | ||
"author": "junjun16818", | ||
@@ -5,0 +5,0 @@ "description": "Node.js client library for Google's Kubernetes Kubectl And API", |
@@ -8,3 +8,3 @@ # Nodejs Kubernetes client | ||
# build | ||
``` | ||
``` | ||
git clone https://github.com/Goyoo/node-k8s-client.git | ||
@@ -11,0 +11,0 @@ npm install |
@@ -22,2 +22,3 @@ const expect = require('chai').expect | ||
}) | ||
@@ -34,16 +35,15 @@ describe('kubeapi ',function() | ||
}) | ||
}) | ||
}) | ||
// it('test api GET by watch -> get rc list', function(done) | ||
// { | ||
// var res = kubeapi.watch('watch/namespaces/default/pods', function(data){ | ||
// console.log(data) | ||
// var res = kubeapi.watch('watch/namespaces/default/pods', function(data) | ||
// { | ||
// console.log('watch pod log: ' + data.type) | ||
// res.emit('close') | ||
// }, function(err){ | ||
// console.log(err) | ||
// }) | ||
// console.log('exit',err) | ||
// }, 20000) | ||
// setTimeout(function() { | ||
// // res.emit('close') | ||
// }, 2000) | ||
// // done() | ||
// }) | ||
@@ -94,3 +94,2 @@ | ||
}) | ||
}) |
52091
1283