forked from haproxytech/kubernetes-ingress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (40 loc) · 1.08 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
PROJECT_PATH=${PWD}
TARGETPLATFORM?=linux/amd64
.PHONY: test
test:
go test ./...
.PHONY: e2e
e2e:
go clean -testcache
go test ./... --tags=e2e_parallel --tags=e2e_https
go test ./... -p 1 --tags=e2e_sequential
.PHONY: tidy
tidy:
go mod tidy
.PHONY: doc
doc:
cd documentation/gen/; go run .
.PHONY: lint
lint:
docker run --rm -v $(pwd):/data cytopia/yamllint .
docker run --rm -v ${PROJECT_PATH}:/app -w /app ghcr.io/haproxytech/go-linter:1.50.0 -v --timeout 5m --color always --max-issues-per-linter 0 --max-same-issues 0
.PHONY: example
example:
deploy/tests/create.sh
.PHONY: example-rebuild
example-rebuild:
deploy/tests/rebuild.sh
.PHONY: example-remove
example-remove:
deploy/tests/delete.sh
.PHONY: build
build:
docker build -t haproxytech/kubernetes-ingress --build-arg TARGETPLATFORM=$(TARGETPLATFORM) -f build/Dockerfile .
.PHONY: publish
publish:
goreleaser release --rm-dist
.PHONY: cr_generate
cr_generate:
crs/code-generator.sh
grep -lir defaultses crs/* | xargs sed -i 's/Defaultses/Defaults/g'
grep -lir defaultses crs/* | xargs sed -i 's/defaultses/defaults/g'