diff --git a/Makefile b/Makefile index e0c313142..37496b85e 100644 --- a/Makefile +++ b/Makefile @@ -138,10 +138,12 @@ build: generate fmt vet ## Build manager binary. go build -o bin/csv-merger cmd/csv-merger/csv-merger.go .PHONY: run +run: export METRICS_PORT?=8080 +run: export HEALTH_PORT?=8081 run: export ENABLE_WEBHOOKS?=false run: manifests generate fmt vet ## Run a controller from your host. /bin/bash hack/clean_local_webhook.sh - go run ./main.go + go run ./main.go -metrics-bind-address ":$(METRICS_PORT)" -health-probe-bind-address ":$(HEALTH_PORT)" .PHONY: docker-build docker-build: test ## Build docker image with the manager. @@ -351,6 +353,8 @@ operator-lint: gowork ## Runs operator-lint # $oc delete -n openstack mutatingwebhookconfiguration/mopenstackclient.kb.io SKIP_CERT ?=false .PHONY: run-with-webhook +run-with-webhook: export METRICS_PORT?=8080 +run-with-webhook: export HEALTH_PORT?=8081 run-with-webhook: manifests generate fmt vet ## Run a controller from your host. /bin/bash hack/configure_local_webhook.sh - go run ./main.go + go run ./main.go -metrics-bind-address ":$(METRICS_PORT)" -health-probe-bind-address ":$(HEALTH_PORT)"