Skip to content

Commit 8aa698e

Browse files
committed
router: readiness url /readyz -> /ready
1 parent 5bd7970 commit 8aa698e

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

images/router/haproxy/conf/haproxy-config.template

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ defaults
7070

7171
{{ if (matchPattern "true|TRUE" (env "ROUTER_ENABLE_COMPRESSION" "false")) }}
7272
compression algo gzip
73-
{{ with $mimeType := (env "ROUTER_COMPRESSION_MIME" "text/html text/plain text/css") }}
74-
compression type {{$mimeType}}
73+
{{ with $mimeType := (env "ROUTER_COMPRESSION_MIME" "text/html text/plain text/css") }}
74+
compression type {{$mimeType}}
7575
{{end}}
7676
{{end}}
7777

@@ -85,7 +85,7 @@ listen stats :1936
8585
monitor-uri /healthz
8686
{{ if .SyncedAtLeastOnce }}
8787
# This uri being configured indicates that routing configuration has been synchronized.
88-
monitor-uri /readyz
88+
monitor-uri /ready
8989
{{ end }}
9090

9191
{{ if and (and (ne .StatsUser "") (ne .StatsPassword "")) (gt .StatsPort 0) }}
@@ -335,19 +335,19 @@ backend be_edge_http_{{$cfgIdx}}
335335
{{ if matchPattern "true|TRUE" (index $cfg.Annotations "haproxy.router.openshift.io/rate-limit-connections") }}
336336
stick-table type ip size 100k expire 30s store conn_cur,conn_rate(3s),http_req_rate(10s)
337337
tcp-request content track-sc2 src
338-
{{ if (isInteger (index $cfg.Annotations "haproxy.router.openshift.io/rate-limit-connections.concurrent-tcp")) }}
338+
{{ if (isInteger (index $cfg.Annotations "haproxy.router.openshift.io/rate-limit-connections.concurrent-tcp")) }}
339339
tcp-request content reject if { src_conn_cur ge {{ index $cfg.Annotations "haproxy.router.openshift.io/rate-limit-connections.concurrent-tcp" }} }
340340
{{ else }}
341341
# concurrent TCP connections not restricted
342342
{{ end }}
343343

344-
{{ if (isInteger (index $cfg.Annotations "haproxy.router.openshift.io/rate-limit-connections.rate-tcp")) }}
344+
{{ if (isInteger (index $cfg.Annotations "haproxy.router.openshift.io/rate-limit-connections.rate-tcp")) }}
345345
tcp-request content reject if { src_conn_rate ge {{ index $cfg.Annotations "haproxy.router.openshift.io/rate-limit-connections.rate-tcp" }} }
346346
{{ else }}
347347
#TCP connection rate not restricted
348348
{{ end }}
349349

350-
{{ if (isInteger (index $cfg.Annotations "haproxy.router.openshift.io/rate-limit-connections.rate-http")) }}
350+
{{ if (isInteger (index $cfg.Annotations "haproxy.router.openshift.io/rate-limit-connections.rate-http")) }}
351351
tcp-request content reject if { src_http_req_rate ge {{ index $cfg.Annotations "haproxy.router.openshift.io/rate-limit-connections.rate-http" }} }
352352
{{ else }}
353353
#HTTP request rate not restricted

pkg/cmd/admin/router/router.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ func generateLivenessProbeConfig(cfg *RouterConfig, ports []kapi.ContainerPort)
427427
}
428428

429429
func generateReadinessProbeConfig(cfg *RouterConfig, ports []kapi.ContainerPort) *kapi.Probe {
430-
probe := generateProbeConfigForRouter(cfg, ports, "/readyz")
430+
probe := generateProbeConfigForRouter(cfg, ports, "/ready")
431431
if probe != nil {
432432
probe.InitialDelaySeconds = 10
433433
}

test/integration/router_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1599,7 +1599,7 @@ func waitForRouterToBecomeAvailable(host string, port int) error {
15991599

16001600
// waitForRouterToBecomeReady checks that the router is ready.
16011601
func waitForRouterToBecomeReady(host string, port int) error {
1602-
return waitForRouter(host, port, "readyz")
1602+
return waitForRouter(host, port, "ready")
16031603
}
16041604

16051605
func makeRouterRequest(t *testing.T, scheme string) (*http.Response, error) {

0 commit comments

Comments
 (0)