Skip to content

Latest commit

 

History

History
56 lines (41 loc) · 997 Bytes

README.md

File metadata and controls

56 lines (41 loc) · 997 Bytes

ksedit

kubernetes secret edit

install

# 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

$ cat ./secret.yml | ksedit > ./scret-edited.yml
# or
$ ksedit ./secret.yml > ./scret-edited.yml

edit and write

$ ksedit -w ./secret.yml

manually decode and encode

$ ksedit -d ./secret.yml > ./secret.dec.yml
$ vim ./secret.dec.yml
$ ksedit -e ./secret.dec.yml > ./secret.yml

options

USAGE:
   ksedit [global options] filepath

ENVS:
   $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