Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 34 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,25 @@ We are making `kubesecret` to give team members a guided approach to performing

**Please note that this tool runs ON TOP of `kubectl`. You need to have `kubectl` installed and running on your OS before using this tool**

* Go to the releases, and download the binary for the OS of your choice.
### npm

```
npm install -g @bufferapp/kubesecret
```

Now run `kubesecret help` to explore what you can do!

### Download the binary

* Go to the releases, and download the binary for the OS of your choice.
* Place the binary somewhere on your `$PATH`.
* Run it using `kubesecret help` to see what you can do with it.

<details>
<summary>A note on windows support</summary>
<p>

While Windows support is currently not supported, we'll be taking care to try and not introduce patterns that exclude windows. We make no guarantees and you are free to run `node_modules/pkg/lib-es5/bin.js -t node10-win-x64` to get yourself a Windows binary and test things out.
While Windows support is currently not supported, we'll be taking care to try and not introduce patterns that exclude windows. We make no guarantees and you are free to run `node_modules/pkg/lib-es5/bin.js -t node10-win-x64` to get yourself a Windows binary and test things out.

</p>
</details>
Expand All @@ -33,3 +43,25 @@ While Windows support is currently not supported, we'll be taking care to try an
* Run `npm install`. The tool is being developed using node `v10.x.x`
* Code away
* To test changes without building the binary run `node scripts/kubesecret.js`
* Install it globally on your machine using `npm link`

### Publish to npm

Use `npm version` to update the version name, add a commit and tag that commit prior to publishing.
For example:

```
npm version 0.5.0
npm publish
```

Or if you want to publish a beta version, manually update the `package.json` version
(e.g. `0.5.0-beta1`) and run this command:

```
npm publish --tag beta
```

## License

MIT
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kubesecret",
"version": "0.4.0",
"name": "@bufferapp/kubesecret",
"version": "0.4.1",
"description": "A CLI utility to manage secrets in kubernetes",
"main": "\"\"",
"dependencies": {
Expand All @@ -24,13 +24,18 @@
"watchLinux": "while inotifywait -q -r -e modify ./lib ./tests; do npm run test; done;",
"watchMac": "fswatch -r $(pwd) -e '\\.git/' -e 'node_modules/' -x | (while read; do npm run test; done)"
},
"bin": "scripts/kubesecret.js",
"bin": {
"kubesecret": "scripts/kubesecret.js"
},
"pkg": {
"scripts": [
"./scripts/kubesecret*.js",
"./lib/*.js"
]
},
"engine": {
"node": ">= 10.0.0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/bufferapp/kubesecret.git"
Expand Down
4 changes: 3 additions & 1 deletion scripts/kubesecret.js
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#!/usr/bin/env node
const program = require('commander');
const { version } = require('../package.json')

process.env.NODE_PATH = `${__dirname}/../node_modules`;

program.version('0.4.0');
program.version(version);
program.name('kubesecret');
program.usage('\nGet started by running ./kubesecret get -n <namespace>');
program.command('get', 'Starts the process of getting secret(s) and performing operations on it');
Expand Down