This little tool print the decoded base64 of a Kubernetes secret:
Usage of k64dec
--file string kubernetes secret in json or yaml file
--version print version
Piped from a kubectl get secrets
:
kubectl get secrets -n kured -o yaml kured-secret-values | k64dec
secretdata
configuration:
notifyUrl: slack://kured@feingeiXe9Ze/uuGo4Aedaiph/xae1beizaeQu
Via a saved file:
k64dec --file secret.yaml
secretdata
configuration:
notifyUrl: slack://kured@feingeiXe9Ze/uuGo4Aedaiph/xae1beizaeQu
With docker:
kubectl get secrets -n kured -o yaml kured-secret-values | docker run -i laghoule/k64dec
For running unittest, you need to set your timezone to UTC:
export TZ=UTC
go test ./...