apiVersion: integreatly.org/v1alpha1
kind: Grafana
metadata:
  name: {{ meta.name }}
  namespace: {{ meta.namespace }}
spec:
  baseImage: {{ servicetelemetry_vars.graphing.grafana.base_image }}
  ingress:
    enabled: {{ servicetelemetry_vars.graphing.grafana.ingress_enabled }}
  config:
    auth:
      disable_signout_menu: {{ servicetelemetry_vars.graphing.grafana.disable_signout_menu }}
    auth.anonymous:
      enabled: true
    log:
      level: warn
      mode: console
    security:
      admin_password: {{ servicetelemetry_vars.graphing.grafana.admin_password }}
      admin_user: {{ servicetelemetry_vars.graphing.grafana.admin_user }}
  dashboardLabelSelector:
    - matchExpressions:
        - key: app
          operator: In
          values:
            - grafana
