Skip to content

Commit

Permalink
fix cloud run new api change for annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
kwadie committed Feb 23, 2023
1 parent 6f2370b commit 52a26ba
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion terraform/modules/bigquery/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ resource "google_bigquery_table" "logging_table" {

deletion_protection = true

labels = var.common_labels
# TODO: labels causes Terraform to force replace the table at each deployment for some reason which we don't want to do for the log table containing history logs
# labels = var.common_labels
}


Expand Down
10 changes: 7 additions & 3 deletions terraform/modules/cloud-run/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,19 @@ resource "google_cloud_run_service" "service" {
}
}
}

metadata {
annotations = {
"autoscaling.knative.dev/maxScale" = var.max_containers
"run.googleapis.com/ingress" : "internal"
#"run.googleapis.com/ingress" : "internal"
}
labels = var.common_labels
}
}

metadata {
annotations = {
"run.googleapis.com/ingress" : "internal"
}
labels = var.common_labels
}

traffic {
Expand Down

0 comments on commit 52a26ba

Please sign in to comment.