Skip to content

Commit 3056a39

Browse files
authored
Merge branch 'main' into apeabody-patch-2
2 parents b3a7be6 + 93d1efa commit 3056a39

File tree

48 files changed

+149
-111
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+149
-111
lines changed

eventarc/basic/main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ resource "google_cloud_run_v2_service" "default" {
9393
name = "hello-events"
9494
location = "us-central1"
9595

96+
deletion_protection = false # set to "true" in production
97+
9698
template {
9799
containers {
98100
# This container will log received events

run/access_control/main.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@
1717
# [START cloudrun_access_control_parent_tag]
1818
# [START cloudrun_service_access_control_run_service]
1919
resource "google_cloud_run_v2_service" "default" {
20-
name = "cloud-run-srv"
20+
name = "public-service"
2121
location = "us-central1"
2222

23+
deletion_protection = false # set to "true" in production
24+
2325
template {
2426
containers {
2527
image = "us-docker.pkg.dev/cloudrun/container/hello"

run/add_tag/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
# [START cloudrun_service_add_tag]
1818
resource "google_cloud_run_v2_service" "default" {
19-
name = "cloudrun-srv"
19+
name = "my-service"
2020
location = "us-central1"
2121

2222
template {}
@@ -26,14 +26,14 @@ resource "google_cloud_run_v2_service" "default" {
2626
traffic {
2727
percent = 100
2828
# This revision needs to already exist
29-
revision = "cloudrun-srv-green"
29+
revision = "green"
3030
type = "TRAFFIC_TARGET_ALLOCATION_TYPE_REVISION"
3131
}
3232

3333
traffic {
3434
# Deploy new revision with 0% traffic
3535
percent = 0
36-
revision = "cloudrun-srv-blue"
36+
revision = "blue"
3737
tag = "tag-name"
3838
type = "TRAFFIC_TARGET_ALLOCATION_TYPE_REVISION"
3939
}

run/cloud_run_configuration_concurrency/main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ resource "google_cloud_run_v2_service" "default" {
2121
name = "cloudrun-service-concurrency"
2222
location = "us-central1"
2323

24+
deletion_protection = false # set to "true" in production
25+
2426
template {
2527
containers {
2628
image = "us-docker.pkg.dev/cloudrun/container/hello"

run/cloud_run_configuration_containers/main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ resource "google_cloud_run_v2_service" "default" {
2121
name = "cloudrun-service-containers"
2222
location = "us-central1"
2323

24+
deletion_protection = false # set to "true" in production
25+
2426
template {
2527
containers {
2628
image = "us-docker.pkg.dev/cloudrun/container/hello"

run/cloud_run_configuration_cpu/main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ resource "google_cloud_run_v2_service" "default" {
2121
name = "cloudrun-service-cpu"
2222
location = "us-central1"
2323

24+
deletion_protection = false # set to "true" in production
25+
2426
template {
2527
containers {
2628
image = "us-docker.pkg.dev/cloudrun/container/hello"

run/cloud_run_configuration_cpu_allocation/main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ resource "google_cloud_run_v2_service" "default" {
2121
name = "cloudrun-service-cpu-allocation"
2222
location = "us-central1"
2323

24+
deletion_protection = false # set to "true" in production
25+
2426
template {
2527
containers {
2628
image = "us-docker.pkg.dev/cloudrun/container/hello"

run/cloud_run_configuration_description/main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ resource "google_cloud_run_v2_service" "default" {
2323

2424
description = "This service has a custom description"
2525

26+
deletion_protection = false # set to "true" in production
27+
2628
template {
2729
containers {
2830
image = "us-docker.pkg.dev/cloudrun/container/hello"

run/cloud_run_configuration_environment_variables/main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ resource "google_cloud_run_v2_service" "default" {
2121
name = "cloudrun-service-env-var"
2222
location = "us-central1"
2323

24+
deletion_protection = false # set to "true" in production
25+
2426
template {
2527
containers {
2628
image = "us-docker.pkg.dev/cloudrun/container/hello"

run/cloud_run_configuration_http2/main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ resource "google_cloud_run_v2_service" "default" {
2121
name = "cloudrun-service-h2c"
2222
location = "us-central1"
2323

24+
deletion_protection = false # set to "true" in production
25+
2426
template {
2527
containers {
2628
image = "us-docker.pkg.dev/cloudrun/container/hello"

0 commit comments

Comments
 (0)