Remove 'traffic' variable, the module is not intended to manage rollouts
This commit is contained in:
@@ -249,23 +249,6 @@ resource "google_cloud_run_v2_service" "service" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dynamic "traffic" {
|
|
||||||
for_each = var.traffic
|
|
||||||
content {
|
|
||||||
type = (
|
|
||||||
traffic.value.latest == true
|
|
||||||
? "TRAFFIC_TARGET_ALLOCATION_TYPE_LATEST"
|
|
||||||
: "TRAFFIC_TARGET_ALLOCATION_TYPE_REVISION"
|
|
||||||
)
|
|
||||||
revision = (
|
|
||||||
traffic.value.latest == true
|
|
||||||
? null : "${var.name}-${traffic.key}"
|
|
||||||
)
|
|
||||||
percent = traffic.value.percent
|
|
||||||
tag = traffic.value.tag
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
lifecycle {
|
lifecycle {
|
||||||
ignore_changes = [
|
ignore_changes = [
|
||||||
template.0.annotations["run.googleapis.com/operation-id"],
|
template.0.annotations["run.googleapis.com/operation-id"],
|
||||||
|
|||||||
@@ -199,17 +199,6 @@ variable "service_account_create" {
|
|||||||
default = false
|
default = false
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "traffic" {
|
|
||||||
description = "Traffic steering configuration."
|
|
||||||
type = map(object({
|
|
||||||
latest = optional(bool)
|
|
||||||
percent = optional(number)
|
|
||||||
tag = optional(string)
|
|
||||||
}))
|
|
||||||
default = {}
|
|
||||||
nullable = false
|
|
||||||
}
|
|
||||||
|
|
||||||
variable "volumes" {
|
variable "volumes" {
|
||||||
description = "Named volumes in containers in name => attributes format."
|
description = "Named volumes in containers in name => attributes format."
|
||||||
type = map(object({
|
type = map(object({
|
||||||
|
|||||||
Reference in New Issue
Block a user