leviathan
Easily encode/decode Kubernetes "Secrets" yaml.
Kubernetes stores secrets as base64 encoded values. leviathan
is a tool that
allows you to encode/decode these values in yaml without altering the structure.
Installation
go get -u github.com/fardog/leviathan
Usage
Decode secrets in a yaml file output from Kubernetes
kubectl get secret/my-secret -o yaml > output.yaml
leviathan output.yaml
# some editing to output.yaml occurrs
leviathan --encode output.yaml
You can also pipe into leviathan
directly:
kubectl get secret/my-secret -o yaml | leviathan
License
Apache-2.0