Skip to content

Commit a872f68

Browse files
authored
Add the health-check-disabled field to Service resource (#15314)
1 parent 9191caf commit a872f68

File tree

5 files changed

+11
-0
lines changed

5 files changed

+11
-0
lines changed

mmv1/products/cloudrun/Service.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ properties:
340340
See https://cloud.google.com/sdk/gcloud/reference/run/deploy#--vpc-egress.
341341
- `run.googleapis.com/gpu-zonal-redundancy-disabled` sets
342342
[GPU zonal redundancy](https://cloud.google.com/run/docs/configuring/services/gpu-zonal-redundancy) for the Revision.
343+
- `run.googleapis.com/health-check-disabled` disabled health checking containers during deployment.
343344
default_from_api: true
344345
diff_suppress_func: 'cloudrunTemplateAnnotationDiffSuppress'
345346
- name: 'name'

mmv1/products/cloudrunv2/Service.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -993,6 +993,9 @@ properties:
993993
- name: 'gpuZonalRedundancyDisabled'
994994
type: Boolean
995995
description: True if GPU zonal redundancy is disabled on this revision.
996+
- name: 'healthCheckDisabled'
997+
type: Boolean
998+
description: Disables health checking containers during deployment.
996999
- name: 'traffic'
9971000
type: Array
9981001
description: |-

mmv1/templates/terraform/examples/cloudrunv2_service_limits.tf.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ resource "google_cloud_run_v2_service" "{{$.PrimaryResourceId}}" {
55
ingress = "INGRESS_TRAFFIC_ALL"
66

77
template {
8+
health_check_disabled = true
89
containers {
910
image = "us-docker.pkg.dev/cloudrun/container/hello"
1011
resources {

mmv1/third_party/terraform/services/cloudrun/resource_cloud_run_service_test.go.tmpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,6 +1228,11 @@ resource "google_cloud_run_service" "default" {
12281228
location = "us-central1"
12291229

12301230
template {
1231+
metadata {
1232+
annotations = {
1233+
"run.googleapis.com/health-check-disabled": "true"
1234+
}
1235+
}
12311236
spec {
12321237
containers {
12331238
image = "us-docker.pkg.dev/cloudrun/container/hello"

mmv1/third_party/terraform/services/cloudrunv2/resource_cloud_run_v2_service_test.go.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,6 +1197,7 @@ resource "google_cloud_run_v2_service" "default" {
11971197
}
11981198
default_uri_disabled = true
11991199
template {
1200+
health_check_disabled = true
12001201
containers {
12011202
name = "container-1"
12021203
image = "us-docker.pkg.dev/cloudrun/container/hello"

0 commit comments

Comments
 (0)