kubernetes-ingress icon indicating copy to clipboard operation
kubernetes-ingress copied to clipboard

Read binaryData from configMap

Open dosmanak opened this issue 2 years ago • 2 comments

Hello, I wanted to serve compressed payload with errorfiles using content-type: gzip. When I create configMap using such data, it is not UTF-8 but binary data and the configMap contains it base64 encoded in binaryData object and not data as usual.

I think the binaryData are not read from configMaps in Haproxy Ingress controller informers.go. I thing the Annotation object should read both data and binaryData from configMap object and merge them.

I used plaintext configMap and raised tun.bufsize instead so the errorfile fits in buffer size. But being able to fill it with binary data could be beneficial.

Some info on binaryData in configMaps is in k8s docs.

dosmanak avatar Jul 20 '23 06:07 dosmanak

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 21 '23 21:08 stale[bot]

Hi @dosmanak , I will mark this as an enhancement. It will be discussed if it's a fit for an ulterior release. Thanks for suggesting.

ivanmatmati avatar Aug 22 '23 12:08 ivanmatmati