-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (24 loc) · 1.03 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
default: lint
build_dependecnsies:
$(if $(and $(env),$(repository)),,$(error 'env' and/or 'repository' is not defined))
$(eval context=$(or $(context),k0s-dev-cluster))
$(eval platform=$(or $(platform),linux/amd64))
helm --kube-context $(context) dependency build \
./deploy/helm/postgresql
deploy_postgresql:
$(if $(and $(env),$(repository)),,$(error 'env' and/or 'repository' is not defined))
$(eval context=$(or $(context),k0s-dev-cluster))
$(eval platform=$(or $(platform),linux/amd64))
helm --kube-context $(context) upgrade \
--install postgresql \
--values=./deploy/helm/postgresql/values.yaml \
--values=./deploy/helm/postgresql/values_$(env).yaml \
./deploy/helm/postgresql
destroy_postgresql:
$(if $(and $(env),$(repository)),,$(error 'env' and/or 'repository' is not defined))
$(eval context=$(or $(context),k0s-dev-cluster))
$(eval platform=$(or $(platform),linux/amd64))
helm --kube-context $(context) uninstall postgresql
lint:
golangci-lint run --config .golangci.yml -v ./...
.PHONY: deploy_postgresql lint