-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
37 lines (28 loc) · 899 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
.ONESHELL:
TAG=latest
.PHONY: build
build:
operator-sdk build --go-build-args "-o build/_output/bin/newrelic-alert-manager" personio/newrelic-alert-manager:$(TAG)
.PHONY: release
release: genapi unittest e2etest gendocs build archive
docker push personio/newrelic-alert-manager:$(TAG)
.PHONY: e2etest
e2etest:
kubectl create ns e2e-tests
operator-sdk test local ./e2e_tests --up-local --namespace e2e-tests
.PHONY: e2etest-clean
e2etest-clean:
kubectl delete ns e2e-tests
.PHONY: unittest
unittest:
go test ./pkg/...
.PHONY: gendocs
gendocs:
./hack/docs/gen-crd-api-reference-docs -template-dir hack/docs/templates -config hack/docs/config.json -api-dir "github.com/personio/newrelic-alert-manager/pkg/apis/" -out-file docs/README.md
.PHONY: genapi
genapi:
operator-sdk generate k8s
operator-sdk generate crds
.PHONY: archive
archive:
tar -zcvf build/_output/deploy.tar.gz deploy