Skip to content

Commit 793fde4

Browse files
authored
Avoid MacOS firewall warning on make run (#816)
MacOS requires users to allow/deny whenever an unknown process attempts to listen on a TCP port. Since `make run` always generates a new binary, it is necessary to always accept/deny the attempt. By only listening on the loopback address, we can avoid the prompt
1 parent fb8126f commit 793fde4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ destroy: ## Cleanup all controller artefacts
7979
run: generate manifests fmt vet install deploy-namespace-rbac just-run ## Run operator binary locally against the configured Kubernetes cluster in ~/.kube/config
8080

8181
just-run: ## Just runs 'go run main.go' without regenerating any manifests or deploying RBACs
82-
KUBE_CONFIG=${HOME}/.kube/config OPERATOR_NAMESPACE=rabbitmq-system go run ./main.go
82+
KUBE_CONFIG=${HOME}/.kube/config OPERATOR_NAMESPACE=rabbitmq-system go run ./main.go -metrics-bind-address 127.0.0.1:9782
8383

8484
delve: generate install deploy-namespace-rbac just-delve ## Deploys CRD, Namespace, RBACs and starts Delve debugger
8585

0 commit comments

Comments
 (0)