-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
109 lines (94 loc) · 2.81 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
EXTRA_ARGS?=""
KUBE_CONFIG?=~/.kube/config
NAMESPACE?=fylr
.PHONY: all
all: lint
# lint: lints the chart
.PHONY: lint
lint: lint-execserver lint-fylr
# test: installs the charts and runs tests
.PHONY: test
test: test-execserver test-fylr
# install: installs the charts
.PHONY: install
install: install-execserver install-fylr
# dep-install: installs dependencies needed to execute "ct"
dep-install:
pip3 install yamale
pip3 install --user yamllint
# lint the execserver chart
lint-execserver:
ct lint \
--charts charts/execserver \
--chart-dirs charts/ \
--chart-yaml-schema config/chart_schema.yaml \
--lint-conf config/lintconf.yaml \
--debug \
${EXTRA_ARGS}
# lint the fylr chart
lint-fylr:
ct lint \
--charts charts/fylr \
--chart-dirs charts/fylr \
--chart-yaml-schema config/chart_schema.yaml \
--lint-conf config/lintconf.yaml \
--debug \
${EXTRA_ARGS}
# test-execserver test-installs the execserver and waits for the tests to complete
test-execserver:
ct install \
--charts charts/execserver \
--chart-dirs charts/ \
--debug \
${EXTRA_ARGS}
# test-fylr test-installs the fylr and waits for the tests to complete
test-fylr:
ct install \
--charts charts/fylr \
--chart-dirs charts/ \
--debug \
${EXTRA_ARGS}
# install-execserver: installs the execserver
install-execserver:
helm install execserver charts/execserver \
--namespace ${NAMESPACE} \
--create-namespace \
--kubeconfig ${KUBE_CONFIG}
# install-fylr: installs the fylr
install-fylr:
helm install testinstance charts/fylr \
--namespace ${NAMESPACE} \
--create-namespace \
--kubeconfig ${KUBE_CONFIG} \
-f charts/fylr/values.yaml \
--set minio.resources.requests.memory=128Mi \
--set minio.replicas=3 \
--set postgresql-ha.postgresql.resources.requests.memory=64Mi \
--set postgresql-ha.postgresql.resources.limits.memory=256Mi \
--set postgresql-ha.postgresql.replicaCount=1 \
--set elasticsearch.master.resources.requests.memory=64Mi \
--set elasticsearch.master.replicaCount=1 \
--set elasticsearch.data.resources.requests.memory=256Mi \
--set elasticsearch.data.replicaCount=1 \
--set elasticsearch.coordinating.resources.requests.memory=64Mi \
--set elasticsearch.coordinating.replicaCount=1 \
--set elasticsearch.ingest.resources.requests.memory=64Mi \
--set elasticsearch.ingest.replicaCount=1
install-fylr-dry:
helm install testinstance charts/fylr \
--namespace ${NAMESPACE} \
--create-namespace \
--kubeconfig ${KUBE_CONFIG} \
-f charts/fylr/values.yaml \
--dry-run \
--debug
# uninstall-execserver: uninstalls the execserver chart
uninstall-execserver:
helm uninstall execserver \
--namespace ${NAMESPACE} \
--kubeconfig ${KUBE_CONFIG}
# uninstall-fylr: uninstalls the fylr chart
uninstall-fylr:
helm uninstall testinstance \
--namespace ${NAMESPACE} \
--kubeconfig ${KUBE_CONFIG}