dragonflydb / dragonfly-operator

A Kubernetes operator to install and manage Dragonfly instances.
https://www.dragonflydb.io/docs/managing-dragonfly/operator/installation
Apache License 2.0
146 stars 34 forks source link

feat(helm): do not set default labels for Grafana dashboards #241

Open nlamirault opened 2 months ago

nlamirault commented 2 months ago

i would to add only one label for Grafana dashboards. I set values like that:

grafanaOperator:
      enabled: true
      allowCrossNamespaceImport: true
      matchLabels:
        grafana.com/dashboards: xxxxx

but in generated manifest i've got :

apiVersion: grafana.integreatly.org/v1beta1
kind: GrafanaDashboard
metadata:
  labels:
    ....
  name: dragonfly-operator-grafana-dashboard
  namespace: database
spec:
  ...
  instanceSelector:
    matchLabels:
      dashboards: grafana
      grafana.com/dashboards: xxx