-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (32 loc) · 981 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
.PHONY: clean cluster compose context coverage install lint test update vet web
.SILENT:
kind.conf: context
kubectl config view --raw | sed -E 's/127.0.0.1|localhost/host.docker.internal/' > kind.conf
clean:
kind delete cluster
rm -f kind.conf &>/dev/null
cluster: clean
kind create cluster --config=kind.yaml
compose: kind.conf
docker-compose up --build
context:
kubectl config use-context kind-kind
coverage: lint
go test -coverprofile=coverage.out ./...
go tool cover -html=coverage.out -o coverage.html
rm -f coverage.out &>/dev/null
install: context
kubectl create namespace argo
kubectl apply -n argo -f https://github.com/argoproj/argo-workflows/releases/download/v3.3.9/install.yaml
kubectl create rolebinding default-admin --clusterrole=admin --serviceaccount=argo:default --namespace=argo
lint: vet
golangci-lint run ./...
test:
go test ./...
update:
go get -u -t -d -v ./...
go mod tidy
vet:
go vet ./...
web:
argo server --auth-mode=server