Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/plaidev/ksedit
cli tool to edit k8s secret like kubesec edit.
https://github.com/plaidev/ksedit
cli edit kubernetes secret tool
Last synced: about 1 month ago
JSON representation
cli tool to edit k8s secret like kubesec edit.
- Host: GitHub
- URL: https://github.com/plaidev/ksedit
- Owner: plaidev
- License: mit
- Created: 2019-12-01T12:25:52.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-12T13:52:57.000Z (over 4 years ago)
- Last Synced: 2024-06-20T14:11:11.140Z (6 months ago)
- Topics: cli, edit, kubernetes, secret, tool
- Language: Go
- Homepage:
- Size: 20.5 KB
- Stars: 6
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ksedit
kubernetes secret edit
## install
```bash
# linux
$ curl -L https://github.com/plaidev/ksedit/releases/download/v0.0.5/ksedit_linux_amd64 -o /usr/local/bin/ksedit
$ chmod +x /usr/local/bin/ksedit# mac
$ curl -L https://github.com/plaidev/ksedit/releases/download/v0.0.5/ksedit_darwin_amd64 -o /usr/local/bin/ksedit
$ chmod +x /usr/local/bin/ksedit
```## usage
pipe or filepath
```bash
$ cat ./secret.yml | ksedit > ./scret-edited.yml
# or
$ ksedit ./secret.yml > ./scret-edited.yml
```edit and write
```bash
$ ksedit -w ./secret.yml
```manually decode and encode
```bash
$ ksedit -d ./secret.yml > ./secret.dec.yml
$ vim ./secret.dec.yml
$ ksedit -e ./secret.dec.yml > ./secret.yml
```## options
```
USAGE:
ksedit [global options] filepathENVS:
$EDITOR (default "vim")GLOBAL OPTIONS:
--write, -w write secret
--encode, -e encode secret
--decode, -d decode secret
--help, -h show help
--version, -v print the version
```