Skip to content

Commit

Permalink
Use loopback address to call knative readiness/liveness internally (#391
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jonathan-innis authored Jul 3, 2023
1 parent 73d8b25 commit 540802e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/operator/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 540802e

Please sign in to comment.