forked from splunk/splunk-connect-for-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (30 loc) · 1.5 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
connect-chart: logging-chart objects-chart metrics-chart
@sed -i.bak -E -e 's/^([[:space:]]+repository:[[:space:]]+).+$$/\1local/' helm-chart/splunk-connect-for-kubernetes/requirements.yaml
@mv helm-chart/splunk-connect-for-kubernetes/requirements.yaml.bak .
@mkdir -p helm-chart/splunk-connect-for-kubernetes/charts
@cp build/splunk-kubernetes-*.tgz helm-chart/splunk-connect-for-kubernetes/charts
@helm package -d build helm-chart/splunk-connect-for-kubernetes
@mv requirements.yaml.bak helm-chart/splunk-connect-for-kubernetes/requirements.yaml
@rm -rf helm-chart/splunk-connect-for-kubernetes/charts
logging-chart: build
@helm package -d build helm-chart/splunk-kubernetes-logging
objects-chart: build
@helm package -d build helm-chart/splunk-kubernetes-objects
metrics-chart: build
@helm package -d build helm-chart/splunk-kubernetes-metrics
build:
@mkdir -p build
.PHONY: manifests
manifests: connect-chart
@helm template \
--set global.splunk.hec.host=MY-SPLUNK-HOST \
--set global.splunk.hec.token=MY-SPLUNK-TOKEN \
--set global.splunk.hec.insecureSSL=true \
--set splunk-kubernetes-logging.fullnameOverride="splunk-kubernetes-logging" \
--set splunk-kubernetes-metrics.fullnameOverride="splunk-kubernetes-metrics" \
--set splunk-kubernetes-objects.fullnameOverride="splunk-kubernetes-objects" \
--set splunk-kubernetes-objects.kubernetes.insecureSSL=true \
$$(ls build/splunk-connect-for-kubernetes-*.tgz) \
| ruby tools/gen_manifest.rb manifests
cleanup:
@rm -rf build