mirror of
https://github.com/prometheus-operator/kube-prometheus.git
synced 2025-08-26 08:51:33 +02:00
Merge pull request #1255 from yeya24/fix-dashboards-definition-length-check
This commit is contained in:
commit
80bb15bedd
@ -76,7 +76,9 @@ function(params) {
|
||||
dashboardDatasources: glib.grafana.dashboardDatasources,
|
||||
dashboardSources: glib.grafana.dashboardSources,
|
||||
|
||||
dashboardDefinitions: if std.length(g._config.dashboards) > 0 then {
|
||||
dashboardDefinitions: if std.length(g._config.dashboards) > 0 ||
|
||||
std.length(g._config.rawDashboards) > 0 ||
|
||||
std.length(g._config.folderDashboards) > 0 then {
|
||||
apiVersion: 'v1',
|
||||
kind: 'ConfigMapList',
|
||||
items: glib.grafana.dashboardDefinitions,
|
||||
|
Loading…
x
Reference in New Issue
Block a user