Skip to content

Quickly fetch and decode Kubernetes secrets in an easily digestible format

License

Notifications You must be signed in to change notification settings

sullivtr/k8decode

Repository files navigation

K8decode: fetch and decode kubernetes secrets

test coverage

k8decode {secret-name} [-n] {namespace}

The namespace flag's default value is default. Use -n to specify an alternate namespace for the secret.

For tab autocompletion, download the k8decode_completion.sh bash completion script included in this repo

k8decode [tab]

# OR

k8decode secretsubstring[tab]

If you use ZSH, you can use the autocomplete script by doing the following

# RUN
autoload -U +X bashcompinit && bashcompinit
source /path/to/script