Inspired by https://github.com/ashleyschuett/kubernetes-secret-decode
Reasons for existing this project:
- Primary: Learning of Writing kubectl plugins
- Secondary: Original kubernetes-secret-decode has no Windows compatible binaries in releases.
dotnet tool install --global KubernetesSecretDecode <version>
Open $PROFILE
in text editor and add following line
function kksd() { & kubectl ksddotnet get secret -oyaml $args }
# Full command example
kubectl ksddotnet get secret -oyaml <secret-name>
# Using kksd alias
kksd <secret-name>