-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
37 lines (26 loc) · 1.46 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
go-lint:
golint -min_confidence=0.01 -set_exit_status=1
go-build:
GO111MODULE=on CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ../bin/azp-agent-autoscaler .
go-run:
../bin/azp-agent-autoscaler --name azp-agent --namespace default --token=${AZURE_DEVOPS_TOKEN} --url=${AZURE_DEVOPS_URL} --log-level=Trace
go-test:
go clean -testcache && go test -cover ./... -args --log-level=Trace
docker-build:
docker build -t azp-agent-autoscaler:dev .
docker-run:
docker run -it --rm --name=azp-agent-autoscaler -v ${HOME}/.kube:/home/azp-agent-autoscaler/.kube:ro --network=host --read-only azp-agent-autoscaler:dev --name=azp-agent --namespace=default --token=${AZURE_DEVOPS_TOKEN} --url=${AZURE_DEVOPS_URL} --log-level=Trace
docker-push:
sh docker-push.sh
docker-clean:
docker rmi azp-agent-autoscaler:dev
helm-lint:
helm lint charts/azp-agent-autoscaler
helm-template:
helm template charts/azp-agent-autoscaler --set azp.url=https://dev.azure.com/test,azp.token=abc123def456ghi789jkl,agents.name=azp-agent,pdb.enabled=true,serviceMonitor.enabled=true --debug && \
helm template charts/azp-agent-autoscaler --values example-helm-values.yaml --debug
helm-install:
helm upgrade --debug --install azp-agent-autoscaler charts/azp-agent-autoscaler --values example-helm-values.yaml --set azp.url=${AZURE_DEVOPS_URL},image.repository=azp-agent-autoscaler,image.tag=dev
helm-package:
helm package charts/azp-agent-autoscaler -d charts && \
helm repo index --merge charts/index.yaml charts