Skip to content
Snippets Groups Projects
Commit 1f39702e authored by Ole Langbehn's avatar Ole Langbehn
Browse files

NOISSUE add labels on service level next to existing resource level

parent 75b62a89
No related branches found
No related tags found
No related merge requests found
......@@ -198,6 +198,7 @@ resource "google_cloud_run_service" "unified_api" {
# this needs to be set to all-traffic in order to route a cloud run url correctly, since it does resolve to a non-private ip address.
"run.googleapis.com/vpc-access-egress" = "all-traffic"
}
# labels set on the revision level
labels = {
"environment_type" = local.environment_type
"holi_service" = "unified-api"
......@@ -205,6 +206,14 @@ resource "google_cloud_run_service" "unified_api" {
}
}
metadata {
# labels set on the service level
labels = {
"environment_type" = local.environment_type
"holi_service" = "unified-api"
}
}
traffic {
percent = 100
latest_revision = true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment