-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathMakefile
47 lines (40 loc) · 953 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
HELM_OPTS ?= $(OPTS)
NAMESPACE ?= synology-csi
RELEASE ?= $(NAMESPACE)
HELM_NAMESPACE ?= $(NAMESPACE)
HELM_RELEASE ?= $(RELEASE)
.DEFAULT_GOAL := upgrade
.PHONY: diff
diff:
helm diff upgrade $(HELM_RELEASE) . \
--namespace $(HELM_NAMESPACE) \
--values local.yaml \
$(HELM_OPTS)
.PHONY: fio
fio:
docker buildx build --platform linux/amd64,linux/arm64 -t christianschlichtherle/fio fio --push
.PHONY: template
template:
helm template $(HELM_RELEASE) . \
--namespace $(HELM_NAMESPACE) \
--values local.yaml \
$(HELM_OPTS)
.PHONY: test
test:
helm test $(HELM_RELEASE) \
--namespace $(HELM_NAMESPACE) \
--timeout 10m \
$(HELM_OPTS)
.PHONY: uninstall down
uninstall down:
helm uninstall $(HELM_RELEASE) \
--namespace $(HELM_NAMESPACE) \
$(HELM_OPTS)
.PHONY: upgrade up
upgrade up:
helm upgrade $(HELM_RELEASE) . \
--create-namespace \
--install \
--namespace $(HELM_NAMESPACE) \
--values local.yaml \
$(HELM_OPTS)