File tree Expand file tree Collapse file tree 4 files changed +9
-0
lines changed
Expand file tree Collapse file tree 4 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ kind: GrafanaDashboard
88metadata :
99 name : {{ $path | base | trimSuffix ".json" }}
1010spec :
11+ allowCrossNamespaceImport : {{ .Values.dashboards.allowCrossNamespaceImport }}
1112 resyncPeriod : {{ .Values.dashboards.resyncPeriod }}
1213 folder : {{ .Values.dashboards.folderName }}
1314 instanceSelector :
Original file line number Diff line number Diff line change 2828 equal :
2929 path : metadata.name
3030 value : rds-instances
31+ - equal :
32+ path : spec.allowCrossNamespaceImport
33+ value : true
3134 - equal :
3235 path : spec.resyncPeriod
3336 value : 24h
4144 values :
4245 - ./values/with_grafanadashboards_custom.yaml
4346 asserts :
47+ - equal :
48+ path : spec.allowCrossNamespaceImport
49+ value : false
4450 - equal :
4551 path : spec.resyncPeriod
4652 value : 1m
Original file line number Diff line number Diff line change 11---
22dashboards :
33 enabled : true
4+ allowCrossNamespaceImport : false # Disable cross namespace dashboard import
45 resyncPeriod : 1m
56 instanceSelector : my-grafana
67 folderName : dmf
Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ affinity: {}
9292
9393dashboards :
9494 enabled : false # enabled GrafanaDashboard CRD import
95+ allowCrossNamespaceImport : true # define if Grafana operator can loads dashboards when stored in a different namespace
9596 resyncPeriod : 24h # how often the dashboard is refreshed
9697 instanceSelector : grafana # selects Grafana for import
9798 folderName : # folder assignment for dashboard
You can’t perform that action at this time.
0 commit comments