项目作者: plaidev

项目描述 :
cli tool to edit k8s secret like kubesec edit.
高级语言: Go
项目地址: git://github.com/plaidev/ksedit.git
创建时间: 2019-12-01T12:25:52Z
项目社区:https://github.com/plaidev/ksedit

开源协议:MIT License

下载


ksedit

kubernetes secret edit

install

  1. # linux
  2. $ curl -L https://github.com/plaidev/ksedit/releases/download/v0.0.5/ksedit_linux_amd64 -o /usr/local/bin/ksedit
  3. $ chmod +x /usr/local/bin/ksedit
  4. # mac
  5. $ curl -L https://github.com/plaidev/ksedit/releases/download/v0.0.5/ksedit_darwin_amd64 -o /usr/local/bin/ksedit
  6. $ chmod +x /usr/local/bin/ksedit

usage

pipe or filepath

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

edit and write

  1. $ ksedit -w ./secret.yml

manually decode and encode

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

options

  1. USAGE:
  2. ksedit [global options] filepath
  3. ENVS:
  4. $EDITOR (default "vim")
  5. GLOBAL OPTIONS:
  6. --write, -w write secret
  7. --encode, -e encode secret
  8. --decode, -d decode secret
  9. --help, -h show help
  10. --version, -v print the version