Skip to content

Commit

Permalink
feat(makefile): add Prometheus Operator version and ServiceMonitor CR…
Browse files Browse the repository at this point in the history
…D target

- Add a new target to fetch and create ServiceMonitor CRD from the specified Prometheus Operator version
  • Loading branch information
phenomenes committed Jun 1, 2024
1 parent 86194a4 commit c8bece4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ NAME = kube-stats-exporter
IMAGE = kube-stats-exporter
TAG ?= test
K8S_VERSION = "1.29"
PROM_OPERATOR_VERSION = "v0.73.2"

clean:
cargo clean
Expand Down Expand Up @@ -37,3 +38,6 @@ minikube:
--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 -

0 comments on commit c8bece4

Please sign in to comment.