grafana-operator: [Bug] Cannot import more than 1 dashboard

Describe the bug Cannot import more than 1 dashboard. Works if i import 1 dashboard.

Version v4.1.1

To Reproduce Steps to reproduce the behavior:

  1. Install deploy/manifest
  2. Import two different GrafanaDashboard
  3. See error

Expected behavior Imports two dashoards.

Suspect component/Location where the bug might be occuring unknown i tried grafana versions 7.1, 7.5, 8.3 all with the same result

Grafana Logs:

t=2022-02-09T10:20:17+0000 lvl=dbug msg="User granted access to execute action" logger=dashboard.permissions userId=1 orgId=1 uname=wavesys dashId=0 action=Edit
t=2022-02-09T10:20:17+0000 lvl=dbug msg="User granted access to execute action" logger=dashboard.permissions userId=1 orgId=1 uname=wavesys dashId=0 action=Edit
t=2022-02-09T10:20:17+0000 lvl=dbug msg="User granted access to execute action" logger=dashboard.permissions userId=1 orgId=1 uname=wavesys dashId=1 action=Edit
t=2022-02-09T10:20:17+0000 lvl=dbug msg="User granted access to execute action" logger=dashboard.permissions userId=1 orgId=1 uname=wavesys dashId=1 action=Edit
t=2022-02-09T10:20:17+0000 lvl=dbug msg="User granted access to execute action" logger=dashboard.permissions userId=1 orgId=1 uname=wavesys dashId=1 action=Admin
t=2022-02-09T10:20:17+0000 lvl=info msg="Database locked, sleeping then retrying" logger=sqlstore error="database is locked" retry=0
t=2022-02-09T10:20:17+0000 lvl=eror msg="Folder API error" logger=context userId=1 orgId=1 uname=wavesys error="UNIQUE constraint failed: dashboard.org_id, dashboard.folder_id, dashboard.title" remote_addr=10.244.124.185
t=2022-02-09T10:20:17+0000 lvl=eror msg="Request Completed" logger=context userId=1 orgId=1 uname=wavesys method=POST path=/api/folders status=500 remote_addr=10.244.124.185 time_ms=405 size=30 referer=
t=2022-02-09T10:20:17+0000 lvl=info msg="Request Completed" logger=context userId=1 orgId=1 uname=wavesys method=POST path=/api/dashboards/db status=400 remote_addr=10.244.124.185 time_ms=96 size=45 referer=
t=2022-02-09T10:20:17+0000 lvl=dbug msg="Scheduling update" logger=alerting.scheduler ruleCount=0
t=2022-02-09T10:20:17+0000 lvl=info msg="Request Completed" logger=context userId=1 orgId=1 uname=wavesys method=POST path=/api/dashboards/db status=400 remote_addr=10.244.124.185 time_ms=237 size=45 referer=
t=2022-02-09T10:20:18+0000 lvl=info msg="Request Completed" logger=context userId=1 orgId=1 uname=wavesys method=POST path=/api/dashboards/db status=400 remote_addr=10.244.124.185 time_ms=148 size=45 referer=
t=2022-02-09T10:20:18+0000 lvl=dbug msg="User granted access to execute action" logger=dashboard.permissions userId=1 orgId=1 uname=wavesys dashId=0 action=Edit
t=2022-02-09T10:20:18+0000 lvl=dbug msg="User granted access to execute action" logger=dashboard.permissions userId=1 orgId=1 uname=wavesys dashId=2 action=Edit
t=2022-02-09T10:20:18+0000 lvl=dbug msg="User granted access to execute action" logger=dashboard.permissions userId=1 orgId=1 uname=wavesys dashId=2 action=Edit
t=2022-02-09T10:20:18+0000 lvl=dbug msg="User granted access to execute action" logger=dashboard.permissions userId=1 orgId=1 uname=wavesys dashId=2 action=Admin
t=2022-02-09T10:20:18+0000 lvl=info msg="Request Completed" logger=context userId=1 orgId=1 uname=wavesys method=POST path=/api/dashboards/db status=400 remote_addr=10.244.124.185 time_ms=143 size=45 referer=
t=2022-02-09T10:20:18+0000 lvl=info msg="Request Completed" logger=context userId=1 orgId=1 uname=wavesys method=POST path=/api/dashboards/db status=400 remote_addr=10.244.124.185 time_ms=152 size=45 referer=
t=2022-02-09T10:20:18+0000 lvl=info msg="Request Completed" logger=context userId=1 orgId=1 uname=wavesys method=POST path=/api/dashboards/db status=400 remote_addr=10.244.124.185 time_ms=154 size=45 referer=
t=2022-02-09T10:20:19+0000 lvl=info msg="Request Completed" logger=context userId=1 orgId=1 uname=wavesys method=POST path=/api/dashboards/db status=400 remote_addr=10.244.124.185 time_ms=154 size=45 referer=
t=2022-02-09T10:20:19+0000 lvl=info msg="Request Completed" logger=context userId=1 orgId=1 uname=wavesys method=POST path=/api/dashboards/db status=400 remote_addr=10.244.124.185 time_ms=202 size=45 referer=

loop...

Grafana-Operator logs:

2022-02-09T10:07:22.139Z        ERROR   dashboard-victoriametrics       failed to request dashboard from grafana.com, falling back to config map; if spec
ified   {"error": "Operation cannot be fulfilled on grafanadashboards.integreatly.org \"victoriametrics\": the object has been modified; please apply you
r changes to the latest version and try again"}
github.com/go-logr/zapr.(*zapLogger).Error
        /go/pkg/mod/github.com/go-logr/zapr@v0.2.0/zapr.go:132
github.com/grafana-operator/grafana-operator/v4/controllers/grafanadashboard.(*DashboardPipelineImpl).obtainJson
        /workspace/controllers/grafanadashboard/dashboard_pipeline.go:129
github.com/grafana-operator/grafana-operator/v4/controllers/grafanadashboard.(*DashboardPipelineImpl).ProcessDashboard
        /workspace/controllers/grafanadashboard/dashboard_pipeline.go:64
github.com/grafana-operator/grafana-operator/v4/controllers/grafanadashboard.(*GrafanaDashboardReconciler).reconcileDashboards
        /workspace/controllers/grafanadashboard/grafanadashboard_controller.go:299
github.com/grafana-operator/grafana-operator/v4/controllers/grafanadashboard.(*GrafanaDashboardReconciler).Reconcile
        /workspace/controllers/grafanadashboard/grafanadashboard_controller.go:130
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.8.3/pkg/internal/controller/controller.go:298
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.8.3/pkg/internal/controller/controller.go:253
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1.2
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.8.3/pkg/internal/controller/controller.go:216
k8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext.func1
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:185
k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:155
k8s.io/apimachinery/pkg/util/wait.BackoffUntil
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:156
k8s.io/apimachinery/pkg/util/wait.JitterUntil
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:133
k8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:185
k8s.io/apimachinery/pkg/util/wait.UntilWithContext
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:99
2022-02-09T10:07:22.303Z        ERROR   error updating dashboard        {"error": "error creating dashboard, expected status 200 but got 400"}
github.com/go-logr/zapr.(*zapLogger).Error
        /go/pkg/mod/github.com/go-logr/zapr@v0.2.0/zapr.go:132
sigs.k8s.io/controller-runtime/pkg/log.(*DelegatingLogger).Error
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.8.3/pkg/log/deleg.go:144
github.com/grafana-operator/grafana-operator/v4/controllers/grafanadashboard.(*GrafanaDashboardReconciler).manageError
        /workspace/controllers/grafanadashboard/grafanadashboard_controller.go:467
github.com/grafana-operator/grafana-operator/v4/controllers/grafanadashboard.(*GrafanaDashboardReconciler).reconcileDashboards
        /workspace/controllers/grafanadashboard/grafanadashboard_controller.go:347
github.com/grafana-operator/grafana-operator/v4/controllers/grafanadashboard.(*GrafanaDashboardReconciler).Reconcile
        /workspace/controllers/grafanadashboard/grafanadashboard_controller.go:130
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.8.3/pkg/internal/controller/controller.go:298
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.8.3/pkg/internal/controller/controller.go:253
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1.2
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.8.3/pkg/internal/controller/controller.go:216
k8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext.func1
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:185
k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:155
k8s.io/apimachinery/pkg/util/wait.BackoffUntil
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:156
k8s.io/apimachinery/pkg/util/wait.JitterUntil
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:133
k8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:185
k8s.io/apimachinery/pkg/util/wait.UntilWithContext
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:99
2022-02-09T10:07:22.503Z        ERROR   error updating dashboard        {"error": "error creating dashboard, expected status 200 but got 400"}
github.com/go-logr/zapr.(*zapLogger).Error
        /go/pkg/mod/github.com/go-logr/zapr@v0.2.0/zapr.go:132
sigs.k8s.io/controller-runtime/pkg/log.(*DelegatingLogger).Error
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.8.3/pkg/log/deleg.go:144
github.com/grafana-operator/grafana-operator/v4/controllers/grafanadashboard.(*GrafanaDashboardReconciler).manageError
        /workspace/controllers/grafanadashboard/grafanadashboard_controller.go:467
github.com/grafana-operator/grafana-operator/v4/controllers/grafanadashboard.(*GrafanaDashboardReconciler).reconcileDashboards
        /workspace/controllers/grafanadashboard/grafanadashboard_controller.go:347
github.com/grafana-operator/grafana-operator/v4/controllers/grafanadashboard.(*GrafanaDashboardReconciler).Reconcile
        /workspace/controllers/grafanadashboard/grafanadashboard_controller.go:130
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.8.3/pkg/internal/controller/controller.go:298
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.8.3/pkg/internal/controller/controller.go:253
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1.2
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.8.3/pkg/internal/controller/controller.go:216
k8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext.func1
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:185
k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:155
k8s.io/apimachinery/pkg/util/wait.BackoffUntil
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:156
k8s.io/apimachinery/pkg/util/wait.JitterUntil
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:133
k8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:185
k8s.io/apimachinery/pkg/util/wait.UntilWithContext
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:99
2022-02-09T10:07:22.710Z        ERROR   error updating dashboard        {"error": "error creating dashboard, expected status 200 but got 400"}
github.com/go-logr/zapr.(*zapLogger).Error
        /go/pkg/mod/github.com/go-logr/zapr@v0.2.0/zapr.go:132
sigs.k8s.io/controller-runtime/pkg/log.(*DelegatingLogger).Error
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.8.3/pkg/log/deleg.go:144
github.com/grafana-operator/grafana-operator/v4/controllers/grafanadashboard.(*GrafanaDashboardReconciler).manageError
        /workspace/controllers/grafanadashboard/grafanadashboard_controller.go:467
github.com/grafana-operator/grafana-operator/v4/controllers/grafanadashboard.(*GrafanaDashboardReconciler).reconcileDashboards
        /workspace/controllers/grafanadashboard/grafanadashboard_controller.go:347
github.com/grafana-operator/grafana-operator/v4/controllers/grafanadashboard.(*GrafanaDashboardReconciler).Reconcile
        /workspace/controllers/grafanadashboard/grafanadashboard_controller.go:130
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.8.3/pkg/internal/controller/controller.go:298
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.8.3/pkg/internal/controller/controller.go:253
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1.2
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.8.3/pkg/internal/controller/controller.go:216
k8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext.func1
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:185
k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:155
k8s.io/apimachinery/pkg/util/wait.BackoffUntil
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:156
k8s.io/apimachinery/pkg/util/wait.JitterUntil
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:133
k8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:185
k8s.io/apimachinery/pkg/util/wait.UntilWithContext
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:99
2022-02-09T10:07:22.906Z        ERROR   error updating dashboard        {"error": "error creating dashboard, expected status 200 but got 400"}
github.com/go-logr/zapr.(*zapLogger).Error
        /go/pkg/mod/github.com/go-logr/zapr@v0.2.0/zapr.go:132
sigs.k8s.io/controller-runtime/pkg/log.(*DelegatingLogger).Error
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.8.3/pkg/log/deleg.go:144
github.com/grafana-operator/grafana-operator/v4/controllers/grafanadashboard.(*GrafanaDashboardReconciler).manageError
        /workspace/controllers/grafanadashboard/grafanadashboard_controller.go:467
github.com/grafana-operator/grafana-operator/v4/controllers/grafanadashboard.(*GrafanaDashboardReconciler).reconcileDashboards
        /workspace/controllers/grafanadashboard/grafanadashboard_controller.go:347
github.com/grafana-operator/grafana-operator/v4/controllers/grafanadashboard.(*GrafanaDashboardReconciler).Reconcile
        /workspace/controllers/grafanadashboard/grafanadashboard_controller.go:130
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.8.3/pkg/internal/controller/controller.go:298
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.8.3/pkg/internal/controller/controller.go:253
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1.2
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.8.3/pkg/internal/controller/controller.go:216
k8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext.func1
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:185
k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:155
k8s.io/apimachinery/pkg/util/wait.BackoffUntil
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:156
k8s.io/apimachinery/pkg/util/wait.JitterUntil
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:133
k8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:185
k8s.io/apimachinery/pkg/util/wait.UntilWithContext
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:99
2022-02-09T10:07:22.949Z        ERROR   dashboard-node  failed to request dashboard from grafana.com, falling back to config map; if specified  {"error":
 "Operation cannot be fulfilled on grafanadashboards.integreatly.org \"node\": the object has been modified; please apply your changes to the latest vers
ion and try again"}
github.com/go-logr/zapr.(*zapLogger).Error
        /go/pkg/mod/github.com/go-logr/zapr@v0.2.0/zapr.go:132
github.com/grafana-operator/grafana-operator/v4/controllers/grafanadashboard.(*DashboardPipelineImpl).obtainJson
        /workspace/controllers/grafanadashboard/dashboard_pipeline.go:129
github.com/grafana-operator/grafana-operator/v4/controllers/grafanadashboard.(*DashboardPipelineImpl).ProcessDashboard
        /workspace/controllers/grafanadashboard/dashboard_pipeline.go:64
github.com/grafana-operator/grafana-operator/v4/controllers/grafanadashboard.(*GrafanaDashboardReconciler).reconcileDashboards
        /workspace/controllers/grafanadashboard/grafanadashboard_controller.go:299
github.com/grafana-operator/grafana-operator/v4/controllers/grafanadashboard.(*GrafanaDashboardReconciler).Reconcile
        /workspace/controllers/grafanadashboard/grafanadashboard_controller.go:130
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.8.3/pkg/internal/controller/controller.go:298
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.8.3/pkg/internal/controller/controller.go:253
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1.2
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.8.3/pkg/internal/controller/controller.go:216
k8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext.func1
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:185
k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:155
k8s.io/apimachinery/pkg/util/wait.BackoffUntil
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:156
k8s.io/apimachinery/pkg/util/wait.JitterUntil
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:133
k8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:185
k8s.io/apimachinery/pkg/util/wait.UntilWithContext
        /go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/wait/wait.go:99
2022-02-09T10:07:23.109Z        ERROR   error updating dashboard        {"error": "error creating dashboard, expected status 200 but got 400"}
github.com/go-logr/zapr.(*zapLogger).Error
        /go/pkg/mod/github.com/go-logr/zapr@v0.2.0/zapr.go:132
sigs.k8s.io/controller-runtime/pkg/log.(*DelegatingLogger).Error
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.8.3/pkg/log/deleg.go:144

loop...

Dashboards:

apiVersion: integreatly.org/v1alpha1
kind: GrafanaDashboard
metadata:
  name: victoriametrics
  labels:
    app: grafana-monitor
spec:
  grafanaCom:
    id: 11176
    revision: 9
  json: ""
---
apiVersion: integreatly.org/v1alpha1
kind: GrafanaDashboard
metadata:
  name: node
  labels:
    app: grafana-monitor
spec:
  grafanaCom:
    id: 1860
    revision: 21
  json: ""

Grafana deployment:

apiVersion: integreatly.org/v1alpha1
kind: Grafana
metadata:
  name: grafana-monitor
spec:
  client:
    timeout: 30
    preferService: True
  ingress:
    enabled: False
    pathType: Prefix
    path: "/"
  jsonnet:
    libraryLabelSelector:
      matchLabels:
        app: grafana-monitor
  config:
    log:
      mode: "console"
      level: "debug"
    log.frontend:
      enabled: true
    metrics:
      enabled: True
    security:
      admin_user: "wavesys"
      admin_password: "adminadmin"
      disable_gravatar: True
    auth:
      disable_login_form: False
      disable_signout_menu: True
    auth.anonymous:
      enabled: False
    analytics:
        check_for_updates: False
        reporting_enabled: False
  service:
    name: "grafana"
    labels:
      app: "grafana-monitor"
      type: "grafana-service"
  dashboardLabelSelector:
    - matchExpressions:
        - { key: app, operator: In, values: [grafana-monitor] }
  resources:
    # Optionally specify container resources
    limits:
      cpu: 200m
      memory: 200Mi
    requests:
      cpu: 100m
      memory: 100Mi
  • Grafana Operator: v4.1.1
  • Environment: kubernetes 1.21.9

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 18 (3 by maintainers)

Most upvoted comments

@NissesSenap, @afritzler, dashboards using multi namespace works. In my tests i installed operator, CR grafana and CR datastores in namespace system and CR dashboards in namespace system-test. Could not replicate the previous issue, always worked. Still i think the issue remains and should be solved but you can close if you want.

I leave the resources i used to test multi namespaces, at least for dashboards. grafana_test.zip

@NissesSenap I haven’t tried again with the latest releases but i will check again. @afritzler which version did you use? Can you show us your custom resources?