forked from cloudfoundry/uaa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (31 loc) · 752 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
GOFILES=`find . -type f -name '*.go'`
.PHONY: help
.PHONY: clean
.PHONY: format
.PHONY: template_test
.PHONY: test
.PHONY: render
.PHONY: apply
.PHONY: kubectl-clean
.PHONY: kubectl-clean-all
.PHONY: brew-cli
help:
@echo "With this makefile you can clean, format, test, render, or apply the UAA K8s templates"
clean:
go clean
format:
gofmt -l -s -w ${GOFILES}
template_test:
go version
go test -count=1 ./test/...
test: format template_test
render:
@ytt -f templates
apply:
@ytt -f templates | kubectl apply -f -
kubectl-clean:
kubectl delete deployments,services,secrets,replicasets,services,pods,configmaps,serviceaccounts --all
kubectl-clean-all:
kubectl delete all,ingress --all
brew-cli:
brew install cloudfoundry/tap/uaa-cli