Open Vince-Chenal opened 1 year ago
Hey,
It could be useful to be able to compress/decompress payloads using gzip/ungzip functions coupled with base64 encoding (existing b64enc).
gzip
ungzip
b64enc
Store compressed files within kubernetes configmaps from Helm to overcome etcd max object size limitation:
--- apiVersion: v1 kind: ConfigMap metadata: name: myconfigmap data: somefile: {{ .Files.Get "somefilepath" | gzip | b64enc }}
Linked to this issue: https://github.com/Masterminds/sprig/issues/355
Context
Hey,
It could be useful to be able to compress/decompress payloads using
gzip
/ungzip
functions coupled with base64 encoding (existingb64enc
).Usage example
Store compressed files within kubernetes configmaps from Helm to overcome etcd max object size limitation:
Linked to this issue: https://github.com/Masterminds/sprig/issues/355