-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathMakefile
32 lines (23 loc) · 868 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
CHART_PATH = helm/wireguard
OVERRIDE_PATH ?= ci/default.yaml
TEMPLATE_ARGS ?= '--disable-openapi-validation'
HELM_NAMESPACE ?= wireguard-test
HELM_RELEASE_NAME ?= wireguard-test
lint:
helm lint $(CHART_PATH) -f $(OVERRIDE_PATH)
template:
helm template --debug $(TEMPLATE_ARGS) $(CHART_PATH) -f $(OVERRIDE_PATH)
deploy:
helm --namespace $(HELM_NAMESPACE) upgrade --install $(HELM_RELEASE_NAME) ./helm/wireguard/ -f $(OVERRIDE_PATH) $(HELM_EXTRA_ARGS)
test:
helm --namespace $(HELM_NAMESPACE) test $(HELM_RELEASE_NAME)
cluster:
kind create cluster
cluster-go-away:
kind delete cluster
clean-secret:
kubectl --namespace $(HELM_NAMESPACE) delete secret $(HELM_RELEASE_NAME)-wg-generated
clean:
helm --namespace $(HELM_NAMESPACE) del $(HELM_RELEASE_NAME)
docs-update:
docker run --rm --volume "$$PWD:/helm-docs" --network host jnorwood/helm-docs:latest