kiwigrid / k8s-sidecar

This is a docker container intended to run inside a kubernetes cluster to collect config maps with a specified label and store the included files in a local folder.
MIT License
612 stars 183 forks source link

Feature Request: Support multiple labels/directories. #369

Open jkroepke opened 1 month ago

jkroepke commented 1 month ago

Hi,

I would like to pitch an proposal here in for supporting scenario where end-users have multiple orgs in grafana and multiple orgs should get different different dashboards. grafana_dashboard=org1 maps to org1 and grafana_dashboard=org2

Currently, each org at grafana requires one sidecar dashboard, because the sidecar supports only one label. Each sidecar has an own root directory (configured via FOLDER) and on Grafana side, each org as an own dashboard provider config.

To avoid multiple deployments of the sidecar, I would like to ask if it's possible to support multiple labels where each set of key/value is mapped to an directory on filesystem.

Ref: https://github.com/grafana/helm-charts/pull/3240#issuecomment-2410878023