Remove 'traffic' variable, the module is not intended to manage rollouts

This commit is contained in:
Julio Diez
2023-12-18 11:39:28 +01:00
parent c599717856
commit bc4f89d9dc
2 changed files with 0 additions and 28 deletions

View File

@@ -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 {
ignore_changes = [
template.0.annotations["run.googleapis.com/operation-id"],