Skip to content
cli tool to edit k8s secret like kubesec edit.
Go Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
sample
.gitignore
.goreleaser.yaml
LICENSE
README.md
go.mod fix Dec 2, 2019
go.sum
main.go fix Dec 2, 2019
makefile

README.md

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/kubectl

# 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/kubectl

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
You can’t perform that action at this time.