-
Notifications
You must be signed in to change notification settings - Fork 271
feat: support per-route timeout overrides for ingress path rules #2250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
25937c1
197721e
f6c1f74
a1c15a5
f5aa7cf
5c87346
1d2ad7b
7b8b8d2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| [api] | ||
| insecure = false | ||
|
|
||
| [entryPoints] | ||
| [entryPoints.web] | ||
| address = ":${ingress_port}" | ||
| [entryPoints.traefik] | ||
| address = ":${control_port}" | ||
|
|
||
| [metrics] | ||
| [metrics.otlp] | ||
| [metrics.otlp.grpc] | ||
| endpoint = "${otel_collector_grpc_endpoint}" | ||
| insecure = true | ||
|
|
||
| [ping] | ||
| entryPoint = "web" | ||
|
|
||
| [providers] | ||
| [providers.file] | ||
| directory = "/local/config" | ||
| watch = false | ||
| [providers.nomad] | ||
| exposedByDefault = false | ||
| [providers.nomad.endpoint] | ||
| address = "${nomad_endpoint}" | ||
| token = "${nomad_token}" | ||
| [providers.consulCatalog] | ||
| exposedByDefault = false | ||
| [providers.consulCatalog.endpoint] | ||
| address = "${consul_endpoint}" | ||
| token = "${consul_token}" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Access logging silently dropped in Traefik config migrationMedium Severity The original CLI args included |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -309,9 +309,8 @@ variable "launch_darkly_api_key" { | |
| sensitive = true | ||
| } | ||
|
|
||
| variable "additional_traefik_arguments" { | ||
| type = list(string) | ||
| default = [] | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing default breaks AWS nomad module consumersLow Severity The old |
||
| variable "traefik_config_files" { | ||
| type = map(string) | ||
| } | ||
|
|
||
| variable "db_max_open_connections" { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -270,11 +270,21 @@ resource "google_compute_url_map" "orch_map" { | |
| default_service = google_compute_backend_service.default["api"].self_link | ||
|
|
||
| dynamic "path_rule" { | ||
| for_each = length(var.additional_api_paths_handled_by_ingress) > 0 ? [{}] : [] | ||
| for_each = var.additional_api_paths_handled_by_ingress | ||
|
|
||
| content { | ||
| paths = var.additional_api_paths_handled_by_ingress | ||
| paths = path_rule.value.paths | ||
| service = google_compute_backend_service.ingress.self_link | ||
|
|
||
| dynamic "route_action" { | ||
| for_each = path_rule.value.timeout_sec != null ? [path_rule.value.timeout_sec] : [] | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The validation {
condition = alltrue([
for r in var.additional_api_paths_handled_by_ingress :
r.timeout_sec == null || r.timeout_sec > 0
])
error_message = "timeout_sec must be greater than 0 when specified."
}
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. technically true, but not meaningfully true. gcp will happily provide an error message. |
||
|
|
||
| content { | ||
| timeout { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The timeout {
seconds = route_action.value
nanos = 0
}
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. technically true, but not meaningfully true. gcp will happily provide an error message. |
||
| seconds = route_action.value | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
|
||


Uh oh!
There was an error while loading. Please reload this page.