Skip to content

Commit

Permalink
contrib: different directories for template and configmap
Browse files Browse the repository at this point in the history
Apparently, due to the limitations of github API and the fact
app interface is using Get repository content call and trying to
parse everything in that directory, the configMap needs to be
in it's own dir.

Signed-off-by: crozzy <joseph.crosland@gmail.com>
  • Loading branch information
crozzy committed Oct 29, 2021
1 parent 6c78d1f commit f0e9108
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ CONTRIB_DIR ?= contrib/openshift
grafana-configmap-gen:
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
> $(CONTRIB_DIR)/grafana/dashboards/dashboard-clair.configmap.yaml

# runs unit tests
.PHONY: unit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1829,3 +1829,4 @@ data:
"uid": "I1JBFlRnz",
"version": 1
}

0 comments on commit f0e9108

Please sign in to comment.