Open
Description
Please describe your feature request.
In addition to the already existing decoders, like @base64d
it would be nice to have a zip
decoder, something like @unzip
to handle gzipped data.
Describe the solution you'd like
For example, to read a Kubernetes helm secret I have to use something like this:
kubectl get secret sh.helm.release.v1.etcd.v1 -oyaml | yq '.data.release| @base64d | @base64d' | gunzip | yq -P '.config'
It would be nice if instead, I could do something like this:
kubectl get secret sh.helm.release.v1.etcd.v1 -oyaml | yq -P '.data.release| @base64d | @base64d' | @unzip | @jsond | .config'