Skip to content

Commit 6c24725

Browse files
committed
update api
Signed-off-by: Mikhail Scherba <[email protected]>
1 parent 5ba9c18 commit 6c24725

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/addon-operator/http_server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func (op *AddonOperator) registerReadyzRoute() {
2525
} else if leader := op.LeaderElector.GetLeader(); len(leader) > 0 {
2626
ctx, cancel := context.WithTimeout(context.Background(), time.Second*3)
2727
defer cancel()
28-
req, err := http.NewRequestWithContext(ctx, http.MethodGet, fmt.Sprintf("http://%s:%s", leader, app.ListenPort), nil)
28+
req, err := http.NewRequestWithContext(ctx, http.MethodGet, fmt.Sprintf("http://%s:%s/readyz", leader, app.ListenPort), nil)
2929
if err != nil {
3030
w.WriteHeader(http.StatusInternalServerError)
3131
_, _ = w.Write([]byte("HA mode is enabled but couldn't craft a request to the leader\n"))

0 commit comments

Comments
 (0)