-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (37 loc) · 971 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
45
46
47
48
NAME = kube-stats-exporter
IMAGE = kube-stats-exporter
TAG ?= test
K8S_VERSION = "1.29"
PROM_OPERATOR_VERSION = "v0.73.2"
clean:
cargo clean
build: sanity-check
cargo build
sanity-check:
cargo fmt --check
cargo clippy
image: clean-image
docker build \
--no-cache \
--rm \
-t $(IMAGE):$(TAG) \
-f Dockerfile .
push-image:
docker build \
--no-cache \
--rm \
-t ghrc.io/phenomenes/$(IMAGE):$(TAG) .
clean-image:
-docker rmi -f $(IMAGE)/$(TAG) >/dev/null 2>&1
chart: lint-chart
helm package charts
lint-chart:
helm lint charts/ --values charts/values.yaml
minikube:
minikube delete || true
minikube start \
--kubernetes-version="$(K8S_VERSION)" \
--cpus=2 \
--memory=4800MB
servicemonitor-crd:
curl -sL https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/$(PROM_OPERATOR_VERSION)/example/prometheus-operator-crd-full/monitoring.coreos.com_servicemonitors.yaml | kubectl create -f -