Skip to content

Commit 65f94cf

Browse files
Arthur Silva SensArthurSens
authored andcommitted
chore: Generate dashboard configmap from separate json files
Signed-off-by: Arthur Silva Sens <[email protected]>
1 parent 34a189d commit 65f94cf

File tree

5 files changed

+5610
-1
lines changed

5 files changed

+5610
-1
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Grafana Dashboard Apply
2+
on:
3+
pull_request:
4+
paths:
5+
- 'prombench/manifests/cluster-infra/grafana_dashboard_dashboards_noparse.yaml'
6+
- 'prombench/manifests/cluster-infra/dashboards/**'
7+
push:
8+
paths:
9+
- 'prombench/manifests/cluster-infra/grafana_dashboard_dashboards_noparse.yaml'
10+
- 'prombench/manifests/cluster-infra/dashboards/**'
11+
jobs:
12+
verify_dashboard_generation:
13+
name: Verify Dashboard Generation
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Verify dashboard generation
18+
run: make --always-make generate-dashboards-cm && git diff --exit-code

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
DOCKER_REPO ?= prominfra
22

33
.PHONY: all
4-
all: precheck style check_license lint build test unused docs-check
4+
all: precheck style check_license lint build test unused docs-check generate-dashboards-cm
55

66
.PHONY: docker
77
docker:
@@ -24,4 +24,8 @@ docs:
2424
docs-check:
2525
./scripts/genflagdocs.sh check
2626

27+
.PHONY: generate-dashboards-cm
28+
generate-dashboards-cm:
29+
./scripts/sync-dashboards-to-configmap.sh
30+
2731
include Makefile.common

0 commit comments

Comments
 (0)