grafana / tanka

Flexible, reusable and concise configuration for Kubernetes
https://tanka.dev
Apache License 2.0
2.29k stars 164 forks source link

Consider native function for gzip #791

Open AndrMoiseev opened 1 year ago

AndrMoiseev commented 1 year ago

Motivation

Grafana Operator allows provisioining of Grafana Dashboards with K8s CRD and actual dashboard json model is stored in ConfigMap. ConfigMap has a size limit 1 Mb, which can be problematic for large dashboards. Dashboard CRD supports storing gzipped json, but as far as I know - jsonnet doesn't have any facility for gzip.

zerok commented 1 month ago

Hi :) Do you actually have a single dashboard that is larger than 1MB? Implementing a native function for adding gzip support is slightly problematic as that function would then only be available in the native (Go) interpreter but not in rsjsonnet et al, which some folks use in specific scenarios.