forked from signalfx/splunk-otel-collector-chart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
25 lines (23 loc) · 772 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
.PHONY: render
render: repo-update dep-build
bash ./examples/render-examples.sh
.PHONY: repo-update
repo-update:
@{ \
if ! (helm repo list | grep -q open-telemetry) ; then \
helm repo add open-telemetry https://open-telemetry.github.io/opentelemetry-helm-charts ;\
fi ;\
if ! (helm repo list | grep -q jetstack) ; then \
helm repo add jetstack https://charts.jetstack.io ;\
fi ;\
helm repo update open-telemetry jetstack ;\
}
.PHONY: dep-build
dep-build:
@{ \
OK=true ;\
DIR=helm-charts/splunk-otel-collector ;\
if ! helm dependencies list $$DIR | grep open-telemetry | grep -q ok ; then OK=false ; fi ;\
if ! helm dependencies list $$DIR | grep jetstack | grep -q ok ; then OK=false ; fi ;\
if ! $$OK ; then helm dependencies build $$DIR ; fi ;\
}