Skip to content

Commit

Permalink
Merge pull request #17 from brendandburns/master
Browse files Browse the repository at this point in the history
Update library to 1.9.x
  • Loading branch information
brendandburns authored Mar 24, 2018
2 parents d8c5da4 + 1a3eb1b commit 397ca8f
Show file tree
Hide file tree
Showing 10 changed files with 15,655 additions and 7,114 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ k8sApi.createNamespace(namespace).then(
);
```

# Additional Examples
There are several more examples in the [examples](/kubernetes-client/javascript/tree/master/examples) directory.

# Development

All dependencies of this project are expressed in its
Expand All @@ -67,6 +70,15 @@ that you have [NPM](https://www.npmjs.com/) installed, then run:
npm install
```

## (re) Generating code

```
cd ../
git clone https://github.com/kubernetes-client/gen
cd javascript
../gen/openapi/javascript.sh node-client/src settings
```

# Testing

Tests are written using the [Chai](http://chaijs.com/) library. See
Expand Down
5 changes: 5 additions & 0 deletions node-client/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export * from './src/config';
export * from './src/api';
export * from './src/attach';
export * from './src/watch';
export * from './src/exec';
10 changes: 6 additions & 4 deletions node-client/package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
{
"name": "@kubernetes/client-node",
"version": "0.1.3",
"version": "0.2.0",
"description": "NodeJS client for kubernetes",
"repository": {
"type": "git",
"url": "git+https://github.com/kubernetes-client/javascript.git"
},
"files": [
"*.ts",
"*.js"
"dist/src/*.ts",
"dist/src/*.js",
"index.ts"
],
"main": "index.js",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"clean": "rm -Rf node_modules/ dist/",
"build": "tsc",
Expand Down
3 changes: 3 additions & 0 deletions node-client/src/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
wwwroot/*.js
node_modules
typings
23 changes: 23 additions & 0 deletions node-client/src/.swagger-codegen-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Swagger Codegen Ignore
# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen

# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.

# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
#ApiClient.cs

# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux

# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux

# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
2 changes: 2 additions & 0 deletions node-client/src/.swagger-codegen/COMMIT
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Requested Commit: v2.2.3
Actual Commit: 049b1b2bcc904e1179a0e9b11124ed8fa0e3be2e
1 change: 1 addition & 0 deletions node-client/src/.swagger-codegen/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.2.3
Loading

0 comments on commit 397ca8f

Please sign in to comment.