Skip to content

Add unzip decoder #2395

Open
Open
@luisdavim

Description

@luisdavim

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'

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions