forked from splunk/splunk-connect-for-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
56 lines (45 loc) · 2.25 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
include PLUGIN_VERSIONS.sh
export $(shell sed 's/=.*//' PLUGIN_VERSIONS.sh)
create-dir:
@rm -rf build/
@mkdir -p build
main-chart: create-dir
@helm package -d build helm-chart/splunk-connect-for-kubernetes
logging-chart: create-dir
@helm package -d build helm-chart/splunk-connect-for-kubernetes/charts/splunk-kubernetes-logging
objects-chart: create-dir
@helm package -d build helm-chart/splunk-connect-for-kubernetes/charts/splunk-kubernetes-objects
metrics-chart: create-dir
@helm package -d build helm-chart/splunk-connect-for-kubernetes/charts/splunk-kubernetes-metrics
all-charts: create-dir
@helm package -d build helm-chart/splunk-connect-for-kubernetes
@helm package -d build helm-chart/splunk-connect-for-kubernetes/charts/splunk-kubernetes-logging
@helm package -d build helm-chart/splunk-connect-for-kubernetes/charts/splunk-kubernetes-objects
@helm package -d build helm-chart/splunk-connect-for-kubernetes/charts/splunk-kubernetes-metrics
version-update:
@./tools/update_charts_version.sh
build: all-charts
.PHONY: manifests
manifests: main-chart
@helm template -n default \
--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 \
--set splunk-kubernetes-objects.image.tag=$(KUBE_OBJECT_VERSION) \
--set splunk-kubernetes-logging.image.tag=$(FLUENTD_HEC_VERSION) \
--set splunk-kubernetes-metrics.image.tag=$(K8S_METRICS_VERISION) \
--set splunk-kubernetes-metrics.imageAgg.tag=$(K8S_METRICS_AGGR_VERSION) \
--set splunk-kubernetes-logging.podSecurityPolicy.create=true \
--set splunk-kubernetes-metrics.podSecurityPolicy.create=true \
--set splunk-kubernetes-objects.podSecurityPolicy.create=true \
$$(ls build/splunk-connect-for-kubernetes-*.tgz) \
| ruby tools/gen_manifest.rb manifests
cleanup:
@rm -rf build
release: version-update manifests
@cp build/splunk-connect-for-kubernetes-* docs/
@helm repo index docs