-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
33 lines (31 loc) · 1.06 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
KUBECONFIG=$(HOME)/.kube/dev
tag=dev
lint:
ct lint --all
test:
./scripts/validate-license.sh
go mod tidy
go fmt ./cmd/... ./pkg/...
go vet ./cmd/... ./pkg/...
go run github.com/golangci/golangci-lint/cmd/golangci-lint@latest run -v
run:
go run -race ./cmd \
-log.pretty \
-kubeconfig=$(KUBECONFIG)
build:
git tag -d `git tag -l "envoy-sidecar-helper-*"`
go run github.com/goreleaser/goreleaser@latest build --rm-dist --snapshot
mv ./dist/envoy-sidecar-helper_linux_amd64_v1/envoy-sidecar-helper envoy-sidecar-helper
docker build --pull --push . -t paskalmaksim/envoy-sidecar-helper:$(tag)
deploy:
rm -rf ./examples/envoy-sidecar-helper-test/charts
helm dep up ./examples/envoy-sidecar-helper-test --skip-refresh
helm upgrade --install envoy-sidecar-helper-test \
--namespace envoy-sidecar-helper \
--create-namespace \
--set envoy-sidecar-helper.image.tag=$(tag) \
--set envoy-sidecar-helper.pullPolicy=Always \
./examples/envoy-sidecar-helper-test
clean:
helm -n envoy-sidecar-helper delete envoy-sidecar-helper-test || true
kubectl delete ns envoy-sidecar-helper