Merge pull request #1600 from LiuVII/LiuVII/cloud-run-fix

fix(cloud-run): move cpu boost annotation to revision
This commit is contained in:
Julio Castillo 2023-08-18 16:46:25 +02:00 committed by GitHub
commit cb3ff80745
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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