From 540802e1b3faf6605170b541b3f857be6bbf699b Mon Sep 17 00:00:00 2001 From: Jonathan Innis Date: Mon, 3 Jul 2023 11:56:37 -0700 Subject: [PATCH] Use loopback address to call knative readiness/liveness internally (#391) --- pkg/operator/operator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/operator/operator.go b/pkg/operator/operator.go index a60777b2eb..e371c94d6a 100644 --- a/pkg/operator/operator.go +++ b/pkg/operator/operator.go @@ -179,7 +179,7 @@ func (o *Operator) Start(ctx context.Context) { func knativeChecker(path string) healthz.Checker { return func(req *http.Request) (err error) { - res, err := http.Get(fmt.Sprintf("http://:%d/%s", knativeinjection.HealthCheckDefaultPort, path)) + res, err := http.Get(fmt.Sprintf("http://localhost:%d/%s", knativeinjection.HealthCheckDefaultPort, path)) if err != nil { return err }