Skip to content

Commit

Permalink
contrib: add indentation
Browse files Browse the repository at this point in the history
The ConfigMap needs the JSON to be indented to be
correctly applied. This means the make target needs
to a little trickier

Signed-off-by: crozzy <joseph.crosland@gmail.com>
  • Loading branch information
crozzy committed Oct 29, 2021
1 parent bd8160c commit 6c78d1f
Show file tree
Hide file tree
Showing 3 changed files with 1,707 additions and 1,714 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ CONTRIB_DIR ?= contrib/openshift
# avoid maintaining two versions
.PHONY: grafana-configmap-gen
grafana-configmap-gen:
sed -e '/GRAFANA_MANIFEST/{r local-dev/grafana/provisioning/dashboards/dashboard.json' -e 'd' -e '}' \
sed "s/GRAFANA_MANIFEST/$$(sed -e 's/[\&/]/\\&/g' -e 's/$$/\\n/' -e 's/^/ /' local-dev/grafana/provisioning/dashboards/dashboard.json | tr -d '\n')/" \
$(CONTRIB_DIR)/grafana/dashboard-clair.configmap.yaml.tpl \
> $(CONTRIB_DIR)/grafana/dashboard-clair.configmap.yaml

Expand Down
Loading

0 comments on commit 6c78d1f

Please sign in to comment.