fix(cloud-run): move cpu boost annotation to revision

This commit is contained in:
Michael 2023-08-18 13:45:42 +01:00
parent 145a04827a
commit e1e3826f6d
No known key found for this signature in database
GPG Key ID: BCD17BB2D5F6BAAC
1 changed files with 3 additions and 3 deletions

View File

@ -34,9 +34,6 @@ locals {
var.ingress_settings == null ? {} : {
"run.googleapis.com/ingress" = var.ingress_settings
},
var.startup_cpu_boost ? {
"run.googleapis.com/startup-cpu-boost" = "true"
} : {}
)
_iam_run_invoker_members = concat(
lookup(var.iam, "roles/run.invoker", []),
@ -75,6 +72,9 @@ locals {
var.gen2_execution_environment ? {
"run.googleapis.com/execution-environment" = "gen2"
} : {},
var.startup_cpu_boost ? {
"run.googleapis.com/startup-cpu-boost" = "true"
} : {},
)
revision_name = (
try(var.revision_name, null) == null