Add path_template_match and path_template_rewrite support to net-lb-app-ext (required for React apps for example).
This commit is contained in:
committed by
Wiktor Niesiobędzki
parent
817df69ff8
commit
73b6088132
File diff suppressed because one or more lines are too long
@@ -703,6 +703,11 @@ resource "google_compute_url_map" "default" {
|
||||
? match_rules.value.path.value
|
||||
: null
|
||||
)
|
||||
path_template_match = (
|
||||
try(match_rules.value.path.type, null) == "template"
|
||||
? match_rules.value.path.value
|
||||
: null
|
||||
)
|
||||
dynamic "header_matches" {
|
||||
for_each = toset(coalesce(match_rules.value.headers, []))
|
||||
iterator = h
|
||||
@@ -873,8 +878,9 @@ resource "google_compute_url_map" "default" {
|
||||
: [route_action.value.url_rewrite]
|
||||
)
|
||||
content {
|
||||
host_rewrite = url_rewrite.value.host
|
||||
path_prefix_rewrite = url_rewrite.value.path_prefix
|
||||
host_rewrite = url_rewrite.value.host
|
||||
path_prefix_rewrite = url_rewrite.value.path_prefix
|
||||
path_template_rewrite = url_rewrite.value.path_template
|
||||
}
|
||||
}
|
||||
dynamic "weighted_backend_services" {
|
||||
|
||||
@@ -57,8 +57,9 @@ variable "urlmap_config" {
|
||||
nanos = optional(number)
|
||||
}))
|
||||
url_rewrite = optional(object({
|
||||
host = optional(string)
|
||||
path_prefix = optional(string)
|
||||
host = optional(string)
|
||||
path_prefix = optional(string)
|
||||
path_template = optional(string)
|
||||
}))
|
||||
weighted_backend_services = optional(map(object({
|
||||
weight = number
|
||||
@@ -142,8 +143,9 @@ variable "urlmap_config" {
|
||||
nanos = optional(number)
|
||||
}))
|
||||
url_rewrite = optional(object({
|
||||
host = optional(string)
|
||||
path_prefix = optional(string)
|
||||
host = optional(string)
|
||||
path_prefix = optional(string)
|
||||
path_template = optional(string)
|
||||
}))
|
||||
weighted_backend_services = optional(map(object({
|
||||
weight = number
|
||||
@@ -330,8 +332,9 @@ variable "urlmap_config" {
|
||||
nanos = optional(number)
|
||||
}))
|
||||
url_rewrite = optional(object({
|
||||
host = optional(string)
|
||||
path_prefix = optional(string)
|
||||
host = optional(string)
|
||||
path_prefix = optional(string)
|
||||
path_template = optional(string)
|
||||
}))
|
||||
weighted_backend_services = optional(map(object({
|
||||
weight = number
|
||||
|
||||
Reference in New Issue
Block a user